Skip to content

Commit

Permalink
UBI: remove superfluous "!!" operation
Browse files Browse the repository at this point in the history
!!(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>
  • Loading branch information
richardweinberger authored and dedekind committed May 20, 2012
1 parent f01e2d1 commit 0964f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0964f6a

Please sign in to comment.