linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] e2fsck: Remove unused variable
@ 2009-07-06  8:16 Kazuya Mio
  2009-07-07  3:25 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Kazuya Mio @ 2009-07-06  8:16 UTC (permalink / raw)
  To: Theodore Tso; +Cc: linux-ext4

check_block_bitmap() calculates the block number of superblock in the current
block group but it's not used.

Regards,
Kazuya Mio

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
---
 pass5.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c
index e660386..29930cc 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))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/3] e2fsck: Remove unused variable
  2009-07-06  8:16 [PATCH 3/3] e2fsck: Remove unused variable Kazuya Mio
@ 2009-07-07  3:25 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2009-07-07  3:25 UTC (permalink / raw)
  To: Kazuya Mio; +Cc: linux-ext4

On Mon, Jul 06, 2009 at 05:16:32PM +0900, Kazuya Mio wrote:
> check_block_bitmap() calculates the block number of superblock in the 
> current block group but it's not used.

Thanks, applied.

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-07  3:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06  8:16 [PATCH 3/3] e2fsck: Remove unused variable Kazuya Mio
2009-07-07  3:25 ` Theodore Tso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).