Commit 5396ccbd authored by Yu Zhe's avatar Yu Zhe Committed by Corey Minyard

ipmi: remove unnecessary type castings

remove unnecessary void* type castings.
Signed-off-by: default avatarYu Zhe <yuzhe@nfschina.com>
Message-Id: <20220421150941.7659-1-yuzhe@nfschina.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 1016daf2
...@@ -2332,7 +2332,7 @@ static int i_ipmi_request(struct ipmi_user *user, ...@@ -2332,7 +2332,7 @@ static int i_ipmi_request(struct ipmi_user *user,
recv_msg->user_msg_data = user_msg_data; recv_msg->user_msg_data = user_msg_data;
if (supplied_smi) if (supplied_smi)
smi_msg = (struct ipmi_smi_msg *) supplied_smi; smi_msg = supplied_smi;
else { else {
smi_msg = ipmi_alloc_smi_msg(); smi_msg = ipmi_alloc_smi_msg();
if (smi_msg == NULL) { if (smi_msg == NULL) {
...@@ -4080,7 +4080,7 @@ static int handle_ipmb_direct_rcv_rsp(struct ipmi_smi *intf, ...@@ -4080,7 +4080,7 @@ static int handle_ipmb_direct_rcv_rsp(struct ipmi_smi *intf,
struct ipmi_recv_msg *recv_msg; struct ipmi_recv_msg *recv_msg;
struct ipmi_ipmb_direct_addr *daddr; struct ipmi_ipmb_direct_addr *daddr;
recv_msg = (struct ipmi_recv_msg *) msg->user_data; recv_msg = msg->user_data;
if (recv_msg == NULL) { if (recv_msg == NULL) {
dev_warn(intf->si_dev, 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"); "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,7 +4498,7 @@ static int handle_bmc_rsp(struct ipmi_smi *intf, ...@@ -4498,7 +4498,7 @@ static int handle_bmc_rsp(struct ipmi_smi *intf,
struct ipmi_recv_msg *recv_msg; struct ipmi_recv_msg *recv_msg;
struct ipmi_system_interface_addr *smi_addr; struct ipmi_system_interface_addr *smi_addr;
recv_msg = (struct ipmi_recv_msg *) msg->user_data; recv_msg = msg->user_data;
if (recv_msg == NULL) { if (recv_msg == NULL) {
dev_warn(intf->si_dev, 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"); "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");
......
...@@ -1076,7 +1076,7 @@ static void start_next_msg(struct ssif_info *ssif_info, unsigned long *flags) ...@@ -1076,7 +1076,7 @@ static void start_next_msg(struct ssif_info *ssif_info, unsigned long *flags)
static void sender(void *send_info, static void sender(void *send_info,
struct ipmi_smi_msg *msg) struct ipmi_smi_msg *msg)
{ {
struct ssif_info *ssif_info = (struct ssif_info *) send_info; struct ssif_info *ssif_info = send_info;
unsigned long oflags, *flags; unsigned long oflags, *flags;
BUG_ON(ssif_info->waiting_msg); BUG_ON(ssif_info->waiting_msg);
...@@ -1113,7 +1113,7 @@ static int get_smi_info(void *send_info, struct ipmi_smi_info *data) ...@@ -1113,7 +1113,7 @@ static int get_smi_info(void *send_info, struct ipmi_smi_info *data)
*/ */
static void request_events(void *send_info) static void request_events(void *send_info)
{ {
struct ssif_info *ssif_info = (struct ssif_info *) send_info; struct ssif_info *ssif_info = send_info;
unsigned long oflags, *flags; unsigned long oflags, *flags;
if (!ssif_info->has_event_buffer) if (!ssif_info->has_event_buffer)
...@@ -1130,7 +1130,7 @@ static void request_events(void *send_info) ...@@ -1130,7 +1130,7 @@ static void request_events(void *send_info)
*/ */
static void ssif_set_need_watch(void *send_info, unsigned int watch_mask) static void ssif_set_need_watch(void *send_info, unsigned int watch_mask)
{ {
struct ssif_info *ssif_info = (struct ssif_info *) send_info; struct ssif_info *ssif_info = send_info;
unsigned long oflags, *flags; unsigned long oflags, *flags;
long timeout = 0; long timeout = 0;
......
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