commit | d21c3d4d1c6b2a0b85aeae5cc774b1bacc64e5b4 | [log] [tgz] |
---|---|---|
author | Pan Xinhui <[email protected]> | Wed Sep 09 15:37:02 2015 -0700 |
committer | Linus Torvalds <[email protected]> | Thu Sep 10 13:29:01 2015 -0700 |
tree | a31217219c5bfa59b21ad811984a9482da937e1b | |
parent | 774636e19ed514cdf560006813c0473409616de8 [diff] |
lib/bitmap.c: correct a code style and do some, optimization We can avoid in-loop incrementation of ndigits. Save current totaldigits to ndigits before loop, and check ndigits against totaldigits after the loop. Signed-off-by: Pan Xinhui <[email protected]> Cc: Yury Norov <[email protected]> Cc: Chris Metcalf <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Sudeep Holla <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>