ocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks
authorJoseph Qi <joseph.qi@huawei.com>
Tue, 26 Jul 2016 22:21:35 +0000 (15:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2016 23:19:19 +0000 (16:19 -0700)
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>
fs/ocfs2/dlmglue.c

index 1eaa910..fc54432 100644 (file)
@@ -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;