aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Qi <[email protected]>2016-07-26 15:21:35 -0700
committerLinus Torvalds <[email protected]>2016-07-26 16:19:19 -0700
commita8f24f1b3f0820ca6fe4b363e360f3fe7887647e (patch)
tree405cf4ef2dc3c68a9c22ed37e4e76fbc37752157
parent0b492f68bb28c1ecb45cfdc4522074df26c6109d (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/[email protected] Signed-off-by: Joseph Qi <[email protected]> Reviewed-by: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--fs/ocfs2/dlmglue.c4
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)
}
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;