Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipmi: remove unnecessary type castings

remove unnecessary void* type castings.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Message-Id: <20220421150941.7659-1-yuzhe@nfschina.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>

authored by

Yu Zhe and committed by
Corey Minyard
5396ccbd 1016daf2

+6 -6
+3 -3
drivers/char/ipmi/ipmi_msghandler.c
··· 2332 2332 recv_msg->user_msg_data = user_msg_data; 2333 2333 2334 2334 if (supplied_smi) 2335 - smi_msg = (struct ipmi_smi_msg *) supplied_smi; 2335 + smi_msg = supplied_smi; 2336 2336 else { 2337 2337 smi_msg = ipmi_alloc_smi_msg(); 2338 2338 if (smi_msg == NULL) { ··· 4080 4080 struct ipmi_recv_msg *recv_msg; 4081 4081 struct ipmi_ipmb_direct_addr *daddr; 4082 4082 4083 - recv_msg = (struct ipmi_recv_msg *) msg->user_data; 4083 + recv_msg = msg->user_data; 4084 4084 if (recv_msg == NULL) { 4085 4085 dev_warn(intf->si_dev, 4086 4086 "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"); ··· 4498 4498 struct ipmi_recv_msg *recv_msg; 4499 4499 struct ipmi_system_interface_addr *smi_addr; 4500 4500 4501 - recv_msg = (struct ipmi_recv_msg *) msg->user_data; 4501 + recv_msg = msg->user_data; 4502 4502 if (recv_msg == NULL) { 4503 4503 dev_warn(intf->si_dev, 4504 4504 "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");
+3 -3
drivers/char/ipmi/ipmi_ssif.c
··· 1076 1076 static void sender(void *send_info, 1077 1077 struct ipmi_smi_msg *msg) 1078 1078 { 1079 - struct ssif_info *ssif_info = (struct ssif_info *) send_info; 1079 + struct ssif_info *ssif_info = send_info; 1080 1080 unsigned long oflags, *flags; 1081 1081 1082 1082 BUG_ON(ssif_info->waiting_msg); ··· 1113 1113 */ 1114 1114 static void request_events(void *send_info) 1115 1115 { 1116 - struct ssif_info *ssif_info = (struct ssif_info *) send_info; 1116 + struct ssif_info *ssif_info = send_info; 1117 1117 unsigned long oflags, *flags; 1118 1118 1119 1119 if (!ssif_info->has_event_buffer) ··· 1130 1130 */ 1131 1131 static void ssif_set_need_watch(void *send_info, unsigned int watch_mask) 1132 1132 { 1133 - struct ssif_info *ssif_info = (struct ssif_info *) send_info; 1133 + struct ssif_info *ssif_info = send_info; 1134 1134 unsigned long oflags, *flags; 1135 1135 long timeout = 0; 1136 1136