Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8876dd78 authored by Jingoo Han's avatar Jingoo Han Committed by Guenter Roeck
Browse files

hwmon: (ina2xx) Remove casting the return value which is a void pointer



Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 98128de3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -233,8 +233,7 @@ static int ina2xx_probe(struct i2c_client *client,
		return -ENOMEM;

	if (dev_get_platdata(&client->dev)) {
		pdata =
		  (struct ina2xx_platform_data *)dev_get_platdata(&client->dev);
		pdata = dev_get_platdata(&client->dev);
		shunt = pdata->shunt_uohms;
	} else if (!of_property_read_u32(client->dev.of_node,
				"shunt-resistor", &val)) {