Skip to content

Commit

Permalink
ext2: cleanup the confused goto label
Browse files Browse the repository at this point in the history
Cleanup the confused goto label, since the big lock has been removed.

Signed-off-by: Wanlong Gao <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
gaowanlong authored and jankara committed Jul 9, 2012
1 parent a0e589b commit e124a32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/ext2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,13 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
err = -ENOMEM;
sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
if (!sbi)
goto failed_unlock;
goto failed;

sbi->s_blockgroup_lock =
kzalloc(sizeof(struct blockgroup_lock), GFP_KERNEL);
if (!sbi->s_blockgroup_lock) {
kfree(sbi);
goto failed_unlock;
goto failed;
}
sb->s_fs_info = sbi;
sbi->s_sb_block = sb_block;
Expand Down Expand Up @@ -1130,7 +1130,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
sb->s_fs_info = NULL;
kfree(sbi->s_blockgroup_lock);
kfree(sbi);
failed_unlock:
failed:
return ret;
}

Expand Down

0 comments on commit e124a32

Please sign in to comment.