Skip to content

Commit

Permalink
ext4: fix uninitialized variable in ext4_register_li_request
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Theodore Ts'o committed Jan 10, 2011
1 parent 8aefcd5 commit 6c5a6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2922,7 +2922,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;
Expand Down

0 comments on commit 6c5a6cb

Please sign in to comment.