aboutsummaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 14:36:19 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:37 +0200
commit9f94f0a11d476b3a9c02e3d78681de9a0d763ea4 (patch)
tree973d93ea68ba3d0bc1caf0316d4257bdd62ba6a9 /include/linux/string.h
parent2dc5a5a532a5992c47892b1f84ffbcfa4ff36786 (diff)
lib: bitmap: remove redundant code from __bitmap_shift_left
The first of these conditionals is completely redundant: If k == lim-1, we must have off==0, so the second conditional will also trigger and then it wouldn't matter if upper had some high bits set. But the second conditional is in fact also redundant, since it only serves to clear out some high-order "don't care" bits of dst, about which no guarantee is made. 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/string.h')
0 files changed, 0 insertions, 0 deletions