Skip to content

Commit

Permalink
ocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks
Browse files Browse the repository at this point in the history
The last goto is unneeded, so remove it.

Link: http://lkml.kernel.org/r/576213D3.6080002@huawei.com
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
josephhz authored and torvalds committed Jul 26, 2016
1 parent 0b492f6 commit a8f24f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,10 +1665,8 @@ int ocfs2_create_new_inode_locks(struct inode *inode)
}

ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0);
if (ret) {
if (ret)
mlog_errno(ret);
goto bail;
}

bail:
return ret;
Expand Down

0 comments on commit a8f24f1

Please sign in to comment.