diff options
author | Pan Xinhui <xinhuix.pan@intel.com> | 2015-09-09 15:37:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 13:29:01 -0700 |
commit | d21c3d4d1c6b2a0b85aeae5cc774b1bacc64e5b4 (patch) | |
tree | a31217219c5bfa59b21ad811984a9482da937e1b /firmware/.gitignore | |
parent | 774636e19ed514cdf560006813c0473409616de8 (diff) | |
download | blackbird-obmc-linux-d21c3d4d1c6b2a0b85aeae5cc774b1bacc64e5b4.tar.gz blackbird-obmc-linux-d21c3d4d1c6b2a0b85aeae5cc774b1bacc64e5b4.zip |
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 <xinhuix.pan@intel.com>
Cc: Yury Norov <yury.norov@gmail.com>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/.gitignore')
0 files changed, 0 insertions, 0 deletions