summaryrefslogtreecommitdiffstats
path: root/fs/minix/minix.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-08-27 04:38:50 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-11-19 17:13:28 +0100
commitf1fd306a91f875e65af0e04855b23adda6831ac9 (patch)
tree3b3c733133f76ff212f81c9b71ea977169cb4fee /fs/minix/minix.h
parentfs/minix: Verify bitmap block counts before mounting (diff)
downloadlinux-f1fd306a91f875e65af0e04855b23adda6831ac9.tar.xz
linux-f1fd306a91f875e65af0e04855b23adda6831ac9.zip
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;