Skip to contentSkip to conversation

ocfs2: clean up an unneeded goto in ocfs2_put_slot()

PATCH New [email protected] 1 participant 1 message May 20, 2016 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 19/117 ocfs2: clean up an unneeded goto in ocfs2_put_slot()

From: Guozhonghua <[email protected]>
Subject: ocfs2: clean up an unneeded goto in ocfs2_put_slot()

The goto is not useful in ocfs2_put_slot(), so delete it.

Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Joseph Qi <[email protected]>

---

 fs/ocfs2/slot_map.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
fs/ocfs2/slot_map.c renamed from fs/ocfs2/slot_map.c~ocfs2-clean-up-an-unuseful-goto-in-ocfs2_put_slot-function +1 -4
diff -puN fs/ocfs2/slot_map.c~ocfs2-clean-up-an-unuseful-goto-in-ocfs2_put_slot-function fs/ocfs2/slot_map.c
@@ -535,12 +535,8 @@ void ocfs2_put_slot(struct ocfs2_super *
 	spin_unlock(&osb->osb_lock);
 
 	status = ocfs2_update_disk_slot(osb, si, slot_num);
-	if (status < 0) {
+	if (status < 0)
 		mlog_errno(status);
-		goto bail;
-	}
 
-bail:
 	ocfs2_free_slot_info(osb);
 }