diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2016-07-26 18:21:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 19:19:19 -0400 |
commit | a8f24f1b3f0820ca6fe4b363e360f3fe7887647e (patch) | |
tree | 405cf4ef2dc3c68a9c22ed37e4e76fbc37752157 /fs/ocfs2/dlmglue.c | |
parent | 0b492f68bb28c1ecb45cfdc4522074df26c6109d (diff) |
ocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks
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>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r-- | fs/ocfs2/dlmglue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 1eaa9100c889..fc5443226675 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c | |||
@@ -1665,10 +1665,8 @@ int ocfs2_create_new_inode_locks(struct inode *inode) | |||
1665 | } | 1665 | } |
1666 | 1666 | ||
1667 | ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); | 1667 | ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); |
1668 | if (ret) { | 1668 | if (ret) |
1669 | mlog_errno(ret); | 1669 | mlog_errno(ret); |
1670 | goto bail; | ||
1671 | } | ||
1672 | 1670 | ||
1673 | bail: | 1671 | bail: |
1674 | return ret; | 1672 | return ret; |