Skip to content

Commit

Permalink
hwmon: remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
Pointer variables of void * type do not require type cast.

Signed-off-by: XU pengfei <xupengfei@nfschina.com>
  • Loading branch information
xupf1 authored and intel-lab-lkp committed Jan 11, 2023
1 parent b0587c8 commit d29823b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/ibmpex.c
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/powr1220.c
Expand Up @@ -174,7 +174,7 @@ static umode_t
powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
attr, int channel)
{
struct powr1220_data *chip_data = (struct powr1220_data *)data;
struct powr1220_data *chip_data = data;

if (channel >= chip_data->max_channels)
return 0;
Expand Down

0 comments on commit d29823b

Please sign in to comment.