lib/bitmap.c: bitmap_[empty,full]: remove code duplication
authorYury Norov <[email protected]>
Thu, 16 Apr 2015 19:44:00 +0000 (12:44 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:03:56 +0000 (09:03 -0400)
commit2afe27c718b669b551895595873611ac39cc31e3
tree69c4b547b6dc2332514757c7a93e2fce1c6692ff
parentd48502eacd8934b79c3e62f7858c79fa6422398b
lib/bitmap.c: bitmap_[empty,full]: remove code duplication

bitmap_empty() has its own implementation.  But it's clearly as simple as:

find_first_bit(src, nbits) == nbits

The same is true for 'bitmap_full'.

Signed-off-by: Yury Norov <[email protected]>
Cc: George Spelvin <[email protected]>
Cc: Alexey Klimov <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/bitmap.h
lib/bitmap.c