From: Rasmus Villemoes Date: Fri, 13 Feb 2015 22:36:10 +0000 (-0800) Subject: lib: bitmap: yet another simplification in __bitmap_shift_right X-Git-Tag: fixes-v4.0-rc1~107^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfac1d080a00544e5cecd2d7c9ebe3d6a5cc18e6;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed