summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-05-07 22:47:20 (GMT)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 17:25:58 (GMT)
commit0964f6a27b3574d9210c59ec883cbb3fff78a78d (patch)
tree9969060647aeb8c1c954700d690a8997ec10737c /drivers/mtd/ubi
parentf01e2d1654dc65792674b3fe5403dbfcce43f9d2 (diff)
downloadlinux-fsl-qoriq-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')
-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