Skip to contentSkip to conversation

Cleanup dead code from ext2 mount code

PATCH New Theodore Ts'o 1 participant 1 message May 22, 2006 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cleanup dead code from ext2 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.

fs/ext2/super.c +0 -1
Index: linux-2.6/fs/ext2/super.c
===================================================================
@@ -857,7 +857,6 @@
 	}
 	if (!ext2_check_descriptors (sb)) {
 		printk ("EXT2-fs: group descriptors corrupted!\n");
-		db_count = i;
 		goto failed_mount2;
 	}
 	sbi->s_gdb_count = db_count;