aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-06-27 17:10:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-28 14:38:29 -0400
commitddc80bd781590ef6eb8ce30a0f3ac88c5599e41c (patch)
tree01b6b88424e18c4704bdd179c07065abb3d38714
parent5da44ad504662de8120063bdca46897a15f3f1e5 (diff)
ext2: fix return of uninitialised variable
gcc correctly says fs/ext2/super.c: In function 'ext2_remount': fs/ext2/super.c:1055: warning: 'err' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/ext2/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index c9fd8cf6eaa9..5de5061eb331 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -1043,6 +1043,7 @@ static int ext2_remount (struct super_block * sb, int * flags, char * data)
1043 1043
1044 if ((ext2_use_xip(sb)) && (sb->s_blocksize != PAGE_SIZE)) { 1044 if ((ext2_use_xip(sb)) && (sb->s_blocksize != PAGE_SIZE)) {
1045 printk("XIP: Unsupported blocksize\n"); 1045 printk("XIP: Unsupported blocksize\n");
1046 err = -EINVAL;
1046 goto restore_opts; 1047 goto restore_opts;
1047 } 1048 }
1048 1049