diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 47d244db53028d1a2802211d36010c4a13204afd..c26b1add508d0d480d296662392f4f81c15f6fca 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c @@ -337,7 +337,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb, } /* Obviously the LEB with lower sequence counter is older */ - second_is_newer = !!(sqnum2 > seb->sqnum); + second_is_newer = (sqnum2 > seb->sqnum); /* * Now we know which copy is newer. If the copy flag of the PEB with