diff options
author | Bob Peterson <rpeterso@redhat.com> | 2012-08-09 12:48:47 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-09-24 10:47:13 +0100 |
commit | 29c05b205d4d30248982d5167bb142146db89bd3 (patch) | |
tree | e493343c094102b541baade2fff0a09ee6e5c482 /fs/gfs2/rgrp.c | |
parent | e5dc76b9afcfb936818261d65f6f9e1f2c346d59 (diff) | |
download | talos-op-linux-29c05b205d4d30248982d5167bb142146db89bd3.tar.gz talos-op-linux-29c05b205d4d30248982d5167bb142146db89bd3.zip |
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, u64 mask = 0x5555555555555555ULL; u32 bit; - BUG_ON(state > 3); - /* Mask off bits we don't care about at the start of the search */ mask <<= spoint; tmp = gfs2_bit_search(ptr, mask, state); |