浏览代码

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 <guozhonghua@h3c.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Guozhonghua 9 年之前
父节点
当前提交
8f9b1802c2
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      fs/ocfs2/slot_map.c

+ 1 - 5
fs/ocfs2/slot_map.c

@@ -535,12 +535,8 @@ void ocfs2_put_slot(struct ocfs2_super *osb)
 	spin_unlock(&osb->osb_lock);
 	spin_unlock(&osb->osb_lock);
 
 
 	status = ocfs2_update_disk_slot(osb, si, slot_num);
 	status = ocfs2_update_disk_slot(osb, si, slot_num);
-	if (status < 0) {
+	if (status < 0)
 		mlog_errno(status);
 		mlog_errno(status);
-		goto bail;
-	}
 
 
-bail:
 	ocfs2_free_slot_info(osb);
 	ocfs2_free_slot_info(osb);
 }
 }
-