diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-08-26 22:38:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-19 11:13:28 -0500 |
commit | f1fd306a91f875e65af0e04855b23adda6831ac9 (patch) | |
tree | 3b3c733133f76ff212f81c9b71ea977169cb4fee /fs/minix/minix.h | |
parent | 016e8d44bc06dd3322f26712bdd3f3a6973592d0 (diff) |
minixfs: kill manual hweight(), simplify
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/minix/minix.h')
-rw-r--r-- | fs/minix/minix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/minix/minix.h b/fs/minix/minix.h index 6415fe0d2385..26bbd55e82ea 100644 --- a/fs/minix/minix.h +++ b/fs/minix/minix.h | |||
@@ -130,7 +130,7 @@ static inline int minix_find_first_zero_bit(const void *vaddr, unsigned size) | |||
130 | if (!size) | 130 | if (!size) |
131 | return 0; | 131 | return 0; |
132 | 132 | ||
133 | size = (size >> 4) + ((size & 15) > 0); | 133 | size >>= 4; |
134 | while (*p++ == 0xffff) { | 134 | while (*p++ == 0xffff) { |
135 | if (--size == 0) | 135 | if (--size == 0) |
136 | return (p - addr) << 4; | 136 | return (p - addr) << 4; |