mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 09:13:20 -05:00
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: Jingoo Han <jg1.han@samsung.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
98128de30f
commit
8876dd78d9
1 changed files with 1 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue