[PATCH] Cleanup dead code from ext2 mount code

"Theodore Ts'o" <[email protected]>
Newsgroups gmane.comp.file-systems.ext2.devel,gmane.linux.kernel
Message-ID <[email protected]>
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" <[email protected]>

Index: linux-2.6/fs/ext2/super.c
===================================================================
--- linux-2.6.orig/fs/ext2/super.c	2006-05-21 18:39:27.000000000 -0400
+++ linux-2.6/fs/ext2/super.c	2006-05-21 18:39:29.000000000 -0400
@@ -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;


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.