diff options
-rw-r--r-- | fs/qnx4/bitmap.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/fs/qnx4/bitmap.c b/fs/qnx4/bitmap.c index a17440bce018..22e0d60e53ef 100644 --- a/fs/qnx4/bitmap.c +++ b/fs/qnx4/bitmap.c | |||
@@ -28,22 +28,7 @@ static void count_bits(register const char *bmPart, register int size, | |||
28 | } | 28 | } |
29 | do { | 29 | do { |
30 | b = *bmPart++; | 30 | b = *bmPart++; |
31 | if ((b & 1) == 0) | 31 | tot += 8 - hweight8(b); |
32 | tot++; | ||
33 | if ((b & 2) == 0) | ||
34 | tot++; | ||
35 | if ((b & 4) == 0) | ||
36 | tot++; | ||
37 | if ((b & 8) == 0) | ||
38 | tot++; | ||
39 | if ((b & 16) == 0) | ||
40 | tot++; | ||
41 | if ((b & 32) == 0) | ||
42 | tot++; | ||
43 | if ((b & 64) == 0) | ||
44 | tot++; | ||
45 | if ((b & 128) == 0) | ||
46 | tot++; | ||
47 | size--; | 32 | size--; |
48 | } while (size != 0); | 33 | } while (size != 0); |
49 | *tf = tot; | 34 | *tf = tot; |