diff options
| author | Rasmus Villemoes <[email protected]> | 2014-08-06 23:09:57 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-08-07 01:01:26 +0000 |
| commit | 65b4ee62c9cd10640f0054f47fd84c7920e8c118 (patch) | |
| tree | e60b0c786a55b876b170f77753d15f772cc01c27 /lib/bitmap.c | |
| parent | lib: bitmap: make nbits parameter of bitmap_complement unsigned (diff) | |
| download | kernel-65b4ee62c9cd10640f0054f47fd84c7920e8c118.tar.gz kernel-65b4ee62c9cd10640f0054f47fd84c7920e8c118.zip | |
lib: bitmap: remove unnecessary mask from bitmap_complement
Since the extra bits are "don't care", there is no reason to mask the
last word to the used bits when complementing. This shaves off yet a
few bytes.
Signed-off-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
| -rw-r--r-- | lib/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index 0f2f845702eb..4387e3c092fd 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -93,7 +93,7 @@ void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned dst[k] = ~src[k]; if (bits % BITS_PER_LONG) - dst[k] = ~src[k] & BITMAP_LAST_WORD_MASK(bits); + dst[k] = ~src[k]; } EXPORT_SYMBOL(__bitmap_complement); |
