ocfs2: clean up an unneeded goto in ocfs2_put_slot()
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.
Signed-off-by Guozhonghua <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Joseph Qi <[email protected]>
Signed-off-by Andrew Morton <[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
@@ -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); }