diff options
| author | Andrew Morton <akpm@linux-foundation.org> | 2016-08-03 13:45:54 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:39 +0200 |
| commit | d0f854de0601799f93672bfd5545bc6a206a5f7a (patch) | |
| tree | bf15c311d72e0437a5a11e534fa95863b0d7ef5d /include/linux | |
| parent | 4e8f65e1f5d2f24701c4bcfb2ebc77b838c254a0 (diff) | |
include/linux/bitmap.h: cleanup
Remove two unneeded `else's.
Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bitmap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index a2f036c8a..28fc6dc7c 100644 --- a/include/linux/bitmap.h +++ b/include/linux/bitmap.h @@ -248,13 +248,12 @@ static inline int bitmap_equal(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) { if (small_const_nbits(nbits)) - return ! ((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); + return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); #ifdef CONFIG_S390 - else if (__builtin_constant_p(nbits) && (nbits % BITS_PER_LONG) == 0) + if (__builtin_constant_p(nbits) && (nbits % BITS_PER_LONG) == 0) return !memcmp(src1, src2, nbits / 8); #endif - else - return __bitmap_equal(src1, src2, nbits); + return __bitmap_equal(src1, src2, nbits); } static inline int bitmap_intersects(const unsigned long *src1, |
