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: v3.12-rc1~35762 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f16fdadba28add689b567cf03c21dd6dec8e43be;p=kernel%2Fkernel-generic.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 ee4ba75..fec55ff 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;