提交 c9ff5d03 编写于 作者: C Christof Schmitt 提交者: James Bottomley

[SCSI] zfcp: Remove duplicated code from zfcp_ccw_set_online

The steps for setting the zfcp_adapter online are the same in
zfcp_ccw_set_online and zfcp_ccw_activate. Remove the code duplication
by calling zfcp_ccw_activate from zfcp_ccw_set_online.
Reviewed-by: NSwen Schillig <swen@vnet.ibm.com>
Signed-off-by: NChristof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 a1ca4831
...@@ -164,14 +164,7 @@ static int zfcp_ccw_set_online(struct ccw_device *cdev) ...@@ -164,14 +164,7 @@ static int zfcp_ccw_set_online(struct ccw_device *cdev)
BUG_ON(!zfcp_reqlist_isempty(adapter->req_list)); BUG_ON(!zfcp_reqlist_isempty(adapter->req_list));
adapter->req_no = 0; adapter->req_no = 0;
zfcp_erp_modify_adapter_status(adapter, "ccsonl1", NULL, zfcp_ccw_activate(cdev);
ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET);
zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED,
"ccsonl2", NULL);
zfcp_erp_wait(adapter);
flush_work(&adapter->scan_work);
zfcp_ccw_adapter_put(adapter); zfcp_ccw_adapter_put(adapter);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册