* [PATCH 1/1] hwmon: ibmpex: remove unnecessary (void*) conversions
@ 2023-01-11 4:36 XU pengfei
2023-01-15 16:13 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: XU pengfei @ 2023-01-11 4:36 UTC (permalink / raw)
To: jdelvare, linux; +Cc: linux-hwmon, linux-kernel, XU pengfei
Pointer variables of void * type do not require type cast.
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
---
drivers/hwmon/ibmpex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index 1837cccd993c..db066b368918 100644
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -546,7 +546,7 @@ static void ibmpex_bmc_gone(int iface)
static void ibmpex_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)
{
- struct ibmpex_bmc_data *data = (struct ibmpex_bmc_data *)user_msg_data;
+ struct ibmpex_bmc_data *data = user_msg_data;
if (msg->msgid != data->tx_msgid) {
dev_err(data->bmc_device,
--
2.18.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] hwmon: ibmpex: remove unnecessary (void*) conversions
2023-01-11 4:36 [PATCH 1/1] hwmon: ibmpex: remove unnecessary (void*) conversions XU pengfei
@ 2023-01-15 16:13 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2023-01-15 16:13 UTC (permalink / raw)
To: XU pengfei; +Cc: jdelvare, linux-hwmon, linux-kernel
On Wed, Jan 11, 2023 at 12:36:06PM +0800, XU pengfei wrote:
> Pointer variables of void * type do not require type cast.
>
> Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Applied to hwmon-next.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-15 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 4:36 [PATCH 1/1] hwmon: ibmpex: remove unnecessary (void*) conversions XU pengfei
2023-01-15 16:13 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).