Explorar o código

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>
Bob Peterson %!s(int64=13) %!d(string=hai) anos
pai
achega
29c05b205d
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      fs/gfs2/rgrp.c

+ 0 - 2
fs/gfs2/rgrp.c

@@ -228,8 +228,6 @@ static u32 gfs2_bitfit(const u8 *buf, const unsigned int len,
 	u64 mask = 0x5555555555555555ULL;
 	u64 mask = 0x5555555555555555ULL;
 	u32 bit;
 	u32 bit;
 
 
-	BUG_ON(state > 3);
-
 	/* Mask off bits we don't care about at the start of the search */
 	/* Mask off bits we don't care about at the start of the search */
 	mask <<= spoint;
 	mask <<= spoint;
 	tmp = gfs2_bit_search(ptr, mask, state);
 	tmp = gfs2_bit_search(ptr, mask, state);