Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (max16065) Use PTR_ERR_OR_ZERO

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Axel Lin and committed by
Guenter Roeck
a7b30ea5 b8d56898

+1 -4
+1 -4
drivers/hwmon/max16065.c
··· 642 642 643 643 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, 644 644 data, data->groups); 645 - if (unlikely(IS_ERR(hwmon_dev))) 646 - return PTR_ERR(hwmon_dev); 647 - 648 - return 0; 645 + return PTR_ERR_OR_ZERO(hwmon_dev); 649 646 } 650 647 651 648 static const struct i2c_device_id max16065_id[] = {