From patchwork Mon May 7 22:47:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: MTD: UBI: remove superfluous "!!" operation Date: Mon, 07 May 2012 12:47:20 -0000 From: Richard Weinberger X-Patchwork-Id: 157487 Message-Id: <1336430840-27232-1-git-send-email-richard@nod.at> To: linux-mtd@lists.infradead.org Cc: Richard Weinberger , dwmw2@infradead.org, linux-kernel@vger.kernel.org, dedekind1@gmail.com !!(x < y) and (x < y) are identical expressions. Signed-off-by: Richard Weinberger --- 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 12c43b4..8d24435 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