summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-01-10 12:30:17 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 15:14:20 -0800
commit3d8874cb3422508a5cfa2658ef9f3d8ecd923a40 (patch)
tree79b7b0952033c933ca1046860e62309962d4cada /fs
parent9b17038d06c8ca74ca510d1a546a5dfd67f86e25 (diff)
ext4: fix uninitialized variable in ext4_register_li_request
commit 6c5a6cb998854f3c579ecb2bc1423d302bcb1b76 upstream. fs/ext4/super.c: In function 'ext4_register_li_request': fs/ext4/super.c:2936: warning: 'ret' may be used uninitialized in this function It looks buggy to me, too. Cc: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index fb15c9c0be74..0ccdae3cc971 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2916,7 +2916,7 @@ static int ext4_register_li_request(struct super_block *sb,
struct ext4_sb_info *sbi = EXT4_SB(sb);
struct ext4_li_request *elr;
ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count;
- int ret;
+ int ret = 0;
if (sbi->s_li_request != NULL)
return 0;