Skip to content

Commit

Permalink
ocfs2: clean up an unneeded goto in ocfs2_put_slot()
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Guozhonghua authored and torvalds committed May 20, 2016
1 parent aa6913d commit 8f9b180
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/ocfs2/slot_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,8 @@ void ocfs2_put_slot(struct ocfs2_super *osb)
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);
}

0 comments on commit 8f9b180

Please sign in to comment.