git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fb8e9
)
lib: bitmap: yet another simplification in __bitmap_shift_right
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 13 Feb 2015 22:36:10 +0000
(14:36 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:35 +0000
(21:21 -0800)
If left is 0, we can just let mask be ~0UL, so that anding with it is a
no-op. Conveniently, BITMAP_LAST_WORD_MASK provides precisely what we
need, and we can eliminate left.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/bitmap.c
patch
|
blob
|
history
diff --cc
lib/bitmap.c
Simple merge