diff mbox

ocfs2: remove goto statement in ocfs2_dx_dir_link_trailer()

Message ID 20150131030524.GA6753@devel.8.8.4.4 (mailing list archive)
State New, archived
Headers show

Commit Message

Daeseok Youn Jan. 31, 2015, 3:05 a.m. UTC
It is nothing to do in 'out' label, so just return 'ret'
variable.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
 fs/ocfs2/dir.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c
index 319e786..e6e5de8 100644
--- a/fs/ocfs2/dir.c
+++ b/fs/ocfs2/dir.c
@@ -179,7 +179,7 @@  static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle,
 				      OCFS2_JOURNAL_ACCESS_WRITE);
 	if (ret) {
 		mlog_errno(ret);
-		goto out;
+		return ret;
 	}
 	trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb);
 	dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
@@ -189,7 +189,6 @@  static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle,
 
 	ocfs2_journal_dirty(handle, dx_root_bh);
 
-out:
 	return ret;
 }