aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index 47d244db5302..c26b1add508d 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,
337 } 337 }
338 338
339 /* Obviously the LEB with lower sequence counter is older */ 339 /* Obviously the LEB with lower sequence counter is older */
340 second_is_newer = !!(sqnum2 > seb->sqnum); 340 second_is_newer = (sqnum2 > seb->sqnum);
341 341
342 /* 342 /*
343 * Now we know which copy is newer. If the copy flag of the PEB with 343 * Now we know which copy is newer. If the copy flag of the PEB with