From: Kazuya Mio Date: Mon, 6 Jul 2009 08:16:32 +0000 (+0900) Subject: e2fsck: remove unused variable in check_block_bitmap() X-Git-Tag: v1.41.8~12 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e31b32721df24a0794de4f8925112e21dc4699b4;p=tools%2Fe2fsprogs.git e2fsck: remove unused variable in check_block_bitmap() check_block_bitmap() calculates the block number of superblock in the current block group but it's not used. Signed-off-by: Kazuya Mio Signed-off-by: Theodore Ts'o --- diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index 8154e1e..bc3bf02 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -103,7 +103,7 @@ static void print_bitmap_problem(e2fsck_t ctx, int problem, static void check_block_bitmaps(e2fsck_t ctx) { ext2_filsys fs = ctx->fs; - blk_t i, super; + blk_t i; int *free_array; int group = 0; blk_t blocks = 0; @@ -159,7 +159,6 @@ redo_counts: if (csum_flag && (fs->group_desc[group].bg_flags & EXT2_BG_BLOCK_UNINIT)) skip_group++; - super = fs->super->s_first_data_block; for (i = fs->super->s_first_data_block; i < fs->super->s_blocks_count; i++) { @@ -255,7 +254,6 @@ redo_counts: blocks = 0; group_free = 0; skip_group = 0; - super += fs->super->s_blocks_per_group; if (ctx->progress) if ((ctx->progress)(ctx, 5, group, fs->group_desc_count*2))