mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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>
This commit is contained in:
parent
b8d5689830
commit
a7b30ea500
1 changed files with 1 additions and 4 deletions
|
@ -642,10 +642,7 @@ static int max16065_probe(struct i2c_client *client,
|
||||||
|
|
||||||
hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,
|
hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,
|
||||||
data, data->groups);
|
data, data->groups);
|
||||||
if (unlikely(IS_ERR(hwmon_dev)))
|
return PTR_ERR_OR_ZERO(hwmon_dev);
|
||||||
return PTR_ERR(hwmon_dev);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct i2c_device_id max16065_id[] = {
|
static const struct i2c_device_id max16065_id[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue