From: Richard Weinberger Date: Mon, 7 May 2012 22:47:20 +0000 (+0200) Subject: UBI: remove superfluous "!!" operation X-Git-Tag: firefly_0821_release~3680^2~2814^2~40 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0964f6a27b3574d9210c59ec883cbb3fff78a78d;p=firefly-linux-kernel-4.4.55.git UBI: remove superfluous "!!" operation !!(x < y) and (x < y) are identical expressions. Signed-off-by: Richard Weinberger Signed-off-by: Artem Bityutskiy --- 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