ext2: cleanup the confused goto label
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Wed, 27 Jun 2012 16:49:44 +0000 (00:49 +0800)
committerJan Kara <jack@suse.cz>
Mon, 9 Jul 2012 10:03:12 +0000 (12:03 +0200)
Cleanup the confused goto label, since the big lock has been removed.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c

index b3621cb7ea31d6959943c7a2ec37e7ae2b362293..c8e49794ab5d59e2fb2860d2e4e7b965cf27f5af 100644 (file)
@@ -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;
@@ -1130,7 +1130,7 @@ failed_sbi:
        sb->s_fs_info = NULL;
        kfree(sbi->s_blockgroup_lock);
        kfree(sbi);
-failed_unlock:
+failed:
        return ret;
 }