diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-01-10 12:30:17 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:30:17 -0500 |
commit | 6c5a6cb998854f3c579ecb2bc1423d302bcb1b76 (patch) | |
tree | c3c3b895f39a2d555a12ab6307fbad82e5ee63ab /fs/ext4 | |
parent | 8aefcd557d26d0023a36f9ec5afbf55e59f8f26b (diff) |
ext4: fix uninitialized variable in ext4_register_li_request
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>
Cc: stable@kernel.org
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 1cd4326c530b..757cb24c0256 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2922,7 +2922,7 @@ static int ext4_register_li_request(struct super_block *sb, | |||
2922 | struct ext4_sb_info *sbi = EXT4_SB(sb); | 2922 | struct ext4_sb_info *sbi = EXT4_SB(sb); |
2923 | struct ext4_li_request *elr; | 2923 | struct ext4_li_request *elr; |
2924 | ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count; | 2924 | ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count; |
2925 | int ret; | 2925 | int ret = 0; |
2926 | 2926 | ||
2927 | if (sbi->s_li_request != NULL) | 2927 | if (sbi->s_li_request != NULL) |
2928 | return 0; | 2928 | return 0; |