From: Rasmus Villemoes Date: Thu, 12 Feb 2015 23:02:10 +0000 (-0800) Subject: lib/bitmap.c: simplify bitmap_ord_to_pos X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~99^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6a1f5db8d7a7a94ff07251996959d27daba4ee7;p=pandora-kernel.git lib/bitmap.c: simplify bitmap_ord_to_pos Make the return value and the ord and nbits parameters of bitmap_ord_to_pos unsigned. Also, simplify the implementation and as a side effect make the result fully defined, returning nbits for ord >= weight, in analogy with what find_{first,next}_bit does. This is a better sentinel than the former ("unofficial") 0. No current users are affected by this change. Signed-off-by: Rasmus Villemoes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed