diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-07-11 06:35:43 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-07-11 18:01:47 -0400 |
commit | 7a6c76b1b2f2c9555571647f07fc7ccada0a1b0a (patch) | |
tree | bcd770a3d5afd5442c77d8f1846838eb8b661c6d /fs/f2fs/debug.c | |
parent | 81e366f87f52c62671fb1d8050572e68dbcf1d22 (diff) |
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>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index b52c12cf5873..3f99266ccc17 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -345,21 +345,14 @@ void __init f2fs_create_root_stats(void) | |||
345 | 345 | ||
346 | f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL); | 346 | f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL); |
347 | if (!f2fs_debugfs_root) | 347 | if (!f2fs_debugfs_root) |
348 | goto bail; | 348 | return; |
349 | 349 | ||
350 | file = debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root, | 350 | file = debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root, |
351 | NULL, &stat_fops); | 351 | NULL, &stat_fops); |
352 | if (!file) | 352 | if (!file) { |
353 | goto free_debugfs_dir; | 353 | debugfs_remove(f2fs_debugfs_root); |
354 | 354 | f2fs_debugfs_root = NULL; | |
355 | return; | 355 | } |
356 | |||
357 | free_debugfs_dir: | ||
358 | debugfs_remove(f2fs_debugfs_root); | ||
359 | |||
360 | bail: | ||
361 | f2fs_debugfs_root = NULL; | ||
362 | return; | ||
363 | } | 356 | } |
364 | 357 | ||
365 | void f2fs_destroy_root_stats(void) | 358 | void f2fs_destroy_root_stats(void) |