summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/scan.c
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 20:25:58 +0300
commit0964f6a27b3574d9210c59ec883cbb3fff78a78d (patch)
tree9969060647aeb8c1c954700d690a8997ec10737c /drivers/mtd/ubi/scan.c
parentf01e2d1654dc65792674b3fe5403dbfcce43f9d2 (diff)
downloadop-kernel-dev-0964f6a27b3574d9210c59ec883cbb3fff78a78d.zip
op-kernel-dev-0964f6a27b3574d9210c59ec883cbb3fff78a78d.tar.gz
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 47d244d..c26b1ad 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
OpenPOWER on IntegriCloud