summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/scan.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-05-08 02:47:20 +0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 21:25:58 +0400
commit0964f6a27b3574d9210c59ec883cbb3fff78a78d (patch)
tree9969060647aeb8c1c954700d690a8997ec10737c /drivers/mtd/ubi/scan.c
parentf01e2d1654dc65792674b3fe5403dbfcce43f9d2 (diff)
downloadlinux-0964f6a27b3574d9210c59ec883cbb3fff78a78d.tar.xz
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>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-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