diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-06-27 14:10:08 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-28 11:38:29 -0700 |
commit | ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c (patch) | |
tree | 01b6b88424e18c4704bdd179c07065abb3d38714 /fs/ext2 | |
parent | 5da44ad504662de8120063bdca46897a15f3f1e5 (diff) | |
download | kernel_samsung_tuna-ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c.zip kernel_samsung_tuna-ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c.tar.gz kernel_samsung_tuna-ddc80bd781590ef6eb8ce30a0f3ac88c5599e41c.tar.bz2 |
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index c9fd8cf..5de5061 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) if ((ext2_use_xip(sb)) && (sb->s_blocksize != PAGE_SIZE)) { printk("XIP: Unsupported blocksize\n"); + err = -EINVAL; goto restore_opts; } |