ipmi: Rename "user_data" to "recv_msg" in an SMI message
It's only used to hold the corresponding receive message, so fix the
name to make that clear and the type so nothing else can be accidentally
assigned to it.
Signed-off-by: Corey Minyard <corey@minyard.net>
@@ -2040,7 +2040,7 @@ static int i_ipmi_req_ipmb(struct ipmi_smi *intf,
* Save the receive message so we can use it
* to deliver the response.
*/
smi_msg->user_data=recv_msg;
smi_msg->recv_msg=recv_msg;
}else{
mutex_lock(&intf->seq_lock);
@@ -2153,7 +2153,7 @@ static int i_ipmi_req_ipmb_direct(struct ipmi_smi *intf,
memcpy(smi_msg->data+4,msg->data,msg->data_len);
smi_msg->data_size=msg->data_len+4;
smi_msg->user_data=recv_msg;
smi_msg->recv_msg=recv_msg;
return0;
}
@@ -2216,7 +2216,7 @@ static int i_ipmi_req_lan(struct ipmi_smi *intf,
* Save the receive message so we can use it
* to deliver the response.
*/
smi_msg->user_data=recv_msg;
smi_msg->recv_msg=recv_msg;
}else{
mutex_lock(&intf->seq_lock);
@@ -4066,7 +4066,7 @@ static int handle_ipmb_direct_rcv_rsp(struct ipmi_smi *intf,
structipmi_recv_msg*recv_msg;
structipmi_ipmb_direct_addr*daddr;
recv_msg=msg->user_data;
recv_msg=msg->recv_msg;
if(recv_msg==NULL){
dev_warn(intf->si_dev,
"IPMI direct message received with no owner. This could be because of a malformed message, or because of a hardware error. Contact your hardware vendor for assistance.\n");
@@ -4489,7 +4489,7 @@ static int handle_bmc_rsp(struct ipmi_smi *intf,
structipmi_recv_msg*recv_msg;
structipmi_system_interface_addr*smi_addr;
recv_msg=msg->user_data;
recv_msg=msg->recv_msg;
if(recv_msg==NULL){
dev_warn(intf->si_dev,
"IPMI SMI message received with no owner. This could be because of a malformed message, or because of a hardware error. Contact your hardware vendor for assistance.\n");
@@ -4563,14 +4563,14 @@ static int handle_one_recv_msg(struct ipmi_smi *intf,
}elseif((msg->data_size>=2)
&&(msg->data[0]==(IPMI_NETFN_APP_REQUEST<<2))
&&(msg->data[1]==IPMI_SEND_MSG_CMD)
&&(msg->user_data==NULL)){
&&(msg->recv_msg==NULL)){
if(intf->in_shutdown||intf->run_to_completion)
gotoout;
/*
* This is the local response to a command send, start
* the timer for these. The user_data will not be
* the timer for these. The recv_msg will not be
* NULL if this is a response send, and we will let
* response sends just go through.
*/
@@ -4630,7 +4630,7 @@ static int handle_one_recv_msg(struct ipmi_smi *intf,