diff options
author | Richard Weinberger <richard@nod.at> | 2012-05-08 00:47:20 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 20:25:58 +0300 |
commit | 0964f6a27b3574d9210c59ec883cbb3fff78a78d (patch) | |
tree | 9969060647aeb8c1c954700d690a8997ec10737c | |
parent | f01e2d1654dc65792674b3fe5403dbfcce43f9d2 (diff) | |
download | linux-0964f6a27b3574d9210c59ec883cbb3fff78a78d.tar.gz linux-0964f6a27b3574d9210c59ec883cbb3fff78a78d.tar.bz2 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.c | 2 |
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 |