hwmon: (max16065) Use PTR_ERR_OR_ZERO
PATCH 1/1 hwmon: (max16065) Use PTR_ERR_OR_ZERO
Signed-off-by Axel Lin <[email protected]>
--- drivers/hwmon/max16065.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/hwmon/max16065.c +1 -4
@@ -642,10 +642,7 @@ static int max16065_probe(struct i2c_client *client, hwmon_dev =devm_hwmon_device_register_with_groups (dev, client->name, data, data->groups); -if (unlikely (IS_ERR (hwmon_dev))) -return PTR_ERR (hwmon_dev); - -return 0 ; +return PTR_ERR_OR_ZERO (hwmon_dev); }static const struct i2c_device_id max16065_id[] = {
Signature · 9 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 2 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>---
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors