Skip to contentSkip to conversation

ocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks

PATCH Applied Joseph Qi 2 participants 2 messages Jun 16, 2016 OCFS2

lore
Share & tools
lore

Joseph Qi

author
#0 lore raw

PATCH 1/1 ocfs2: cleanup unneeded goto in ocfs2_create_new_inode_locks

The last goto is unneeded, so remove it.

---
 fs/ocfs2/dlmglue.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fs/ocfs2/dlmglue.c +1 -3
index 474e57f..1cfa1b6bf 100644
@@ -1664,10 +1664,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;
Signature · 1 line
1.8.4.3