Commit 861890c6 authored by Brian King's avatar Brian King Committed by James Bottomley
Browse files

[SCSI] ibmvfc: Remove unnecessary parameter to ibmvfc_init_host



Remove a parameter to ibmvfc_init_host which is always set to
zero by all callers.
Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 70431105
...@@ -558,12 +558,11 @@ static void ibmvfc_link_down(struct ibmvfc_host *vhost, ...@@ -558,12 +558,11 @@ static void ibmvfc_link_down(struct ibmvfc_host *vhost,
/** /**
* ibmvfc_init_host - Start host initialization * ibmvfc_init_host - Start host initialization
* @vhost: ibmvfc host struct * @vhost: ibmvfc host struct
* @relogin: is this a re-login?
* *
* Return value: * Return value:
* nothing * nothing
**/ **/
static void ibmvfc_init_host(struct ibmvfc_host *vhost, int relogin) static void ibmvfc_init_host(struct ibmvfc_host *vhost)
{ {
struct ibmvfc_target *tgt; struct ibmvfc_target *tgt;
...@@ -577,10 +576,8 @@ static void ibmvfc_init_host(struct ibmvfc_host *vhost, int relogin) ...@@ -577,10 +576,8 @@ static void ibmvfc_init_host(struct ibmvfc_host *vhost, int relogin)
} }
if (!ibmvfc_set_host_state(vhost, IBMVFC_INITIALIZING)) { if (!ibmvfc_set_host_state(vhost, IBMVFC_INITIALIZING)) {
if (!relogin) { memset(vhost->async_crq.msgs, 0, PAGE_SIZE);
memset(vhost->async_crq.msgs, 0, PAGE_SIZE); vhost->async_crq.cur = 0;
vhost->async_crq.cur = 0;
}
list_for_each_entry(tgt, &vhost->targets, queue) list_for_each_entry(tgt, &vhost->targets, queue)
ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT); ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT);
...@@ -2303,13 +2300,13 @@ static void ibmvfc_handle_crq(struct ibmvfc_crq *crq, struct ibmvfc_host *vhost) ...@@ -2303,13 +2300,13 @@ static void ibmvfc_handle_crq(struct ibmvfc_crq *crq, struct ibmvfc_host *vhost)
/* Send back a response */ /* Send back a response */
rc = ibmvfc_send_crq_init_complete(vhost); rc = ibmvfc_send_crq_init_complete(vhost);
if (rc == 0) if (rc == 0)
ibmvfc_init_host(vhost, 0); ibmvfc_init_host(vhost);
else else
dev_err(vhost->dev, "Unable to send init rsp. rc=%ld\n", rc); dev_err(vhost->dev, "Unable to send init rsp. rc=%ld\n", rc);
break; break;
case IBMVFC_CRQ_INIT_COMPLETE: case IBMVFC_CRQ_INIT_COMPLETE:
dev_info(vhost->dev, "Partner initialization complete\n"); dev_info(vhost->dev, "Partner initialization complete\n");
ibmvfc_init_host(vhost, 0); ibmvfc_init_host(vhost);
break; break;
default: default:
dev_err(vhost->dev, "Unknown crq message type: %d\n", crq->format); dev_err(vhost->dev, "Unknown crq message type: %d\n", crq->format);
...@@ -3731,7 +3728,7 @@ static void ibmvfc_npiv_logout_done(struct ibmvfc_event *evt) ...@@ -3731,7 +3728,7 @@ static void ibmvfc_npiv_logout_done(struct ibmvfc_event *evt)
case IBMVFC_MAD_SUCCESS: case IBMVFC_MAD_SUCCESS:
if (list_empty(&vhost->sent) && if (list_empty(&vhost->sent) &&
vhost->action == IBMVFC_HOST_ACTION_LOGO_WAIT) { vhost->action == IBMVFC_HOST_ACTION_LOGO_WAIT) {
ibmvfc_init_host(vhost, 0); ibmvfc_init_host(vhost);
return; return;
} }
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment