From: Eric Sandeen Date: Fri, 16 Sep 2011 13:31:49 +0000 (-0400) Subject: libext2fs: remove redundant last-group check in ext2fs_check_desc() X-Git-Tag: v1.42-WIP-0916~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f314bb0821473efcecedc450c18211e781d30a72;p=thirdparty%2Fe2fsprogs.git libext2fs: remove redundant last-group check in ext2fs_check_desc() ext2fs_group_last_block2() already properly calculates the last block in the last group, so there is no need to special-case this after the call. Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/check_desc.c b/lib/ext2fs/check_desc.c index da8696417..d0ca75b3a 100644 --- a/lib/ext2fs/check_desc.c +++ b/lib/ext2fs/check_desc.c @@ -53,8 +53,6 @@ errcode_t ext2fs_check_desc(ext2_filsys fs) EXT4_FEATURE_INCOMPAT_FLEX_BG)) { first_block = ext2fs_group_first_block2(fs, i); last_block = ext2fs_group_last_block2(fs, i); - if (i == (fs->group_desc_count - 1)) - last_block = ext2fs_blocks_count(fs->super)-1; } /*