浏览代码

f2fs: cleanup the needless return of f2fs_create_root_stats

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Gu Zheng 11 年之前
父节点
当前提交
7a6c76b1b2
共有 1 个文件被更改,包括 5 次插入12 次删除
  1. 5 12
      fs/f2fs/debug.c

+ 5 - 12
fs/f2fs/debug.c

@@ -345,21 +345,14 @@ void __init f2fs_create_root_stats(void)
 
 
 	f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL);
 	f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL);
 	if (!f2fs_debugfs_root)
 	if (!f2fs_debugfs_root)
-		goto bail;
+		return;
 
 
 	file = debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root,
 	file = debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root,
 			NULL, &stat_fops);
 			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)
 void f2fs_destroy_root_stats(void)