summaryrefslogtreecommitdiff
path: root/fs/minix/minix.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-08-26 22:38:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-11-19 11:13:28 -0500
commitf1fd306a91f875e65af0e04855b23adda6831ac9 (patch)
tree3b3c733133f76ff212f81c9b71ea977169cb4fee /fs/minix/minix.h
parent016e8d44bc06dd3322f26712bdd3f3a6973592d0 (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.h2
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)
if (!size)
return 0;
- size = (size >> 4) + ((size & 15) > 0);
+ size >>= 4;
while (*p++ == 0xffff) {
if (--size == 0)
return (p - addr) << 4;