lkml.org 
[lkml]   [2012]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/5] debugfs: remove goto in debugfs_remount()
Date
Simple code clean to remove goto.

Signed-off-by: Yan Hong <clouds.yan@gmail.com>
---
fs/debugfs/inode.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 58eadc1..c0b06a3 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -221,12 +221,11 @@ static int debugfs_remount(struct super_block *sb, int *flags, char *data)

err = debugfs_parse_options(data, &fsi->mount_opts);
if (err)
- goto fail;
+ return err;

debugfs_apply_options(sb);

-fail:
- return err;
+ return 0;
}

static int debugfs_show_options(struct seq_file *m, struct dentry *root)
--
1.7.9.5


\
 
 \ /
  Last update: 2012-10-27 10:41    [W:0.921 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site