From: Yury Norov Date: Thu, 16 Apr 2015 19:44:00 +0000 (-0700) Subject: lib/bitmap.c: bitmap_[empty,full]: remove code duplication X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2afe27c718b669b551895595873611ac39cc31e3;p=pandora-kernel.git 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 Cc: George Spelvin Cc: Alexey Klimov Cc: Rasmus Villemoes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed