summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-05-08 00:47:20 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 19:25:58 +0200
commit0964f6a27b3574d9210c59ec883cbb3fff78a78d (patch)
tree9969060647aeb8c1c954700d690a8997ec10737c
parentUBI: always warn if case of I/O errors (diff)
downloadlinux-0964f6a27b3574d9210c59ec883cbb3fff78a78d.tar.xz
linux-0964f6a27b3574d9210c59ec883cbb3fff78a78d.zip
UBI: remove superfluous "!!" operation
!!(x < y) and (x < y) are identical expressions. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-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,
}
/* 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