* [PATCH] MTD: UBI: remove superfluous "!!" operation
@ 2012-05-07 22:47 Richard Weinberger
2012-05-08 7:32 ` Artem Bityutskiy
0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2012-05-07 22:47 UTC (permalink / raw)
To: linux-mtd; +Cc: Richard Weinberger, dwmw2, linux-kernel, dedekind1
!!(x < y) and (x < y) are identical expressions.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
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
--
1.7.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MTD: UBI: remove superfluous "!!" operation
2012-05-07 22:47 [PATCH] MTD: UBI: remove superfluous "!!" operation Richard Weinberger
@ 2012-05-08 7:32 ` Artem Bityutskiy
2012-05-08 7:31 ` Richard Weinberger
0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2012-05-08 7:32 UTC (permalink / raw)
To: Richard Weinberger; +Cc: dwmw2, linux-mtd, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
On Tue, 2012-05-08 at 00:47 +0200, Richard Weinberger wrote:
> !!(x < y) and (x < y) are identical expressions.
>
> Signed-off-by: Richard Weinberger <richard@nod.at>
Thanks, pushed to l2-mtd.git.
Since you are submitting often, you may save me a bit of editing if you
prefix UBI patches with just "UBI:" :-) But I do not mind amending
patches if you don't.
Thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-08 7:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-07 22:47 [PATCH] MTD: UBI: remove superfluous "!!" operation Richard Weinberger
2012-05-08 7:32 ` Artem Bityutskiy
2012-05-08 7:31 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox