diff options
author | Bob Peterson <rpeterso@redhat.com> | 2012-08-09 13:48:47 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-09-24 05:47:13 -0400 |
commit | 29c05b205d4d30248982d5167bb142146db89bd3 (patch) | |
tree | e493343c094102b541baade2fff0a09ee6e5c482 /fs/gfs2/rgrp.c | |
parent | e5dc76b9afcfb936818261d65f6f9e1f2c346d59 (diff) |
GFS2: Eliminate unnecessary check for state > 3 in bitfit
Function gfs2_bitfit was checking for state > 3, but that's
impossible since it is only called from rgblk_search, which receives
only GFS2_BLKST_ constants.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index c26711882a6b..47d2346575ad 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -228,8 +228,6 @@ static u32 gfs2_bitfit(const u8 *buf, const unsigned int len, | |||
228 | u64 mask = 0x5555555555555555ULL; | 228 | u64 mask = 0x5555555555555555ULL; |
229 | u32 bit; | 229 | u32 bit; |
230 | 230 | ||
231 | BUG_ON(state > 3); | ||
232 | |||
233 | /* Mask off bits we don't care about at the start of the search */ | 231 | /* Mask off bits we don't care about at the start of the search */ |
234 | mask <<= spoint; | 232 | mask <<= spoint; |
235 | tmp = gfs2_bit_search(ptr, mask, state); | 233 | tmp = gfs2_bit_search(ptr, mask, state); |