提交 0964f6a2 编写于 作者: R Richard Weinberger 提交者: Artem Bityutskiy

UBI: remove superfluous "!!" operation

!!(x < y) and (x < y) are identical expressions.
Signed-off-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 f01e2d16
...@@ -337,7 +337,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb, ...@@ -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 */ /* 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 * Now we know which copy is newer. If the copy flag of the PEB with
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册