]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: cleanup the needless return of f2fs_create_root_stats
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Fri, 11 Jul 2014 10:35:43 +0000 (18:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Jul 2014 22:01:47 +0000 (15:01 -0700)
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/debug.c

index b52c12cf5873af10702f7b1afce7ed3b53f0c709..3f99266ccc17881dfca2b7eaadd2a9b6ac2baf56 100644 (file)
@@ -345,21 +345,14 @@ void __init f2fs_create_root_stats(void)
 
        f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL);
        if (!f2fs_debugfs_root)
-               goto bail;
+               return;
 
        file = debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root,
                        NULL, &stat_fops);
-       if (!file)
-               goto free_debugfs_dir;
-
-       return;
-
-free_debugfs_dir:
-       debugfs_remove(f2fs_debugfs_root);
-
-bail:
-       f2fs_debugfs_root = NULL;
-       return;
+       if (!file) {
+               debugfs_remove(f2fs_debugfs_root);
+               f2fs_debugfs_root = NULL;
+       }
 }
 
 void f2fs_destroy_root_stats(void)