aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 14:36:10 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:36 +0200
commitd83e0f90a3a7087d5c8db28e990d807b31781c74 (patch)
tree2989ad202d5143e51bc28473db9154cce61d312e /include/linux
parent182df8d94f7b75d0274a774c704c077bc1fbbdf3 (diff)
lib: bitmap: yet another simplification in __bitmap_shift_right
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions