From: Guozhonghua Date: Fri, 20 May 2016 00:09:53 +0000 (-0700) Subject: ocfs2: clean up an unneeded goto in ocfs2_put_slot() X-Git-Tag: v4.7-rc1~110^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f9b1802c20ace68a7d6603e1fd82a44fedb4078;p=platform%2Fkernel%2Flinux-exynos.git 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 Cc: Mark Fasheh Cc: Joel Becker Cc: Junxiao Bi Cc: Joseph Qi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/slot_map.c b/fs/ocfs2/slot_map.c index 1e09592..d740799 100644 --- a/fs/ocfs2/slot_map.c +++ b/fs/ocfs2/slot_map.c @@ -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); } -