From: Rasmus Villemoes Date: Fri, 13 Feb 2015 22:36:05 +0000 (-0800) Subject: lib: bitmap: eliminate branch in __bitmap_shift_right X-Git-Tag: fixes-v4.0-rc1~107^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d8a6b2a02c5fae53d47bfffaabd5f12bb6ec2c0;p=pandora-kernel.git lib: bitmap: eliminate branch in __bitmap_shift_right We can shift the bits from lower and upper into place before assembling dst[k]; moving the shift of upper into the branch where we already know that rem is non-zero allows us to remove a conditional. Signed-off-by: Rasmus Villemoes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed