You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
@@ -2216,7 +2216,7 @@ static int i_ipmi_req_lan(struct ipmi_smi *intf,
2216
2216
* Save the receive message so we can use it
2217
2217
* to deliver the response.
2218
2218
*/
2219
-
smi_msg->user_data=recv_msg;
2219
+
smi_msg->recv_msg=recv_msg;
2220
2220
} else {
2221
2221
mutex_lock(&intf->seq_lock);
2222
2222
@@ -4066,7 +4066,7 @@ static int handle_ipmb_direct_rcv_rsp(struct ipmi_smi *intf,
4066
4066
structipmi_recv_msg*recv_msg;
4067
4067
structipmi_ipmb_direct_addr*daddr;
4068
4068
4069
-
recv_msg=msg->user_data;
4069
+
recv_msg=msg->recv_msg;
4070
4070
if (recv_msg==NULL) {
4071
4071
dev_warn(intf->si_dev,
4072
4072
"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,
4489
4489
structipmi_recv_msg*recv_msg;
4490
4490
structipmi_system_interface_addr*smi_addr;
4491
4491
4492
-
recv_msg=msg->user_data;
4492
+
recv_msg=msg->recv_msg;
4493
4493
if (recv_msg==NULL) {
4494
4494
dev_warn(intf->si_dev,
4495
4495
"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,
0 commit comments