From: Theodore Ts'o Date: Sun, 25 Jun 2006 12:47:50 +0000 (-0700) Subject: [PATCH] ext2: clean up dead code from mount code X-Git-Tag: v2.6.18-rc1~987 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f16fdadba28add689b567cf03c21dd6dec8e43be;p=linux-2.6-omap-h63xx.git [PATCH] ext2: clean up dead code from mount code The variable i is guaranteed to be the same as db_count given the previous for loop. So get rid of it since it's dead code. Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext2/super.c b/fs/ext2/super.c index ee4ba759581..fec55ff23de 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -854,7 +854,6 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) } if (!ext2_check_descriptors (sb)) { printk ("EXT2-fs: group descriptors corrupted!\n"); - db_count = i; goto failed_mount2; } sbi->s_gdb_count = db_count;