diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-07-11 04:45:37 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-08-04 10:01:38 -0400 |
commit | a7b30ea500989e1fde0adbe563976d5379fedb59 (patch) | |
tree | cc3709f84a4bff670889ecd0ff9aeb968d8d399e /drivers/hwmon | |
parent | b8d56898307f561d7e100d33c244001a34ee1262 (diff) |
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/max16065.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/hwmon/max16065.c b/drivers/hwmon/max16065.c index d4efc79d7b93..162401aaef71 100644 --- a/drivers/hwmon/max16065.c +++ b/drivers/hwmon/max16065.c | |||
@@ -642,10 +642,7 @@ static int max16065_probe(struct i2c_client *client, | |||
642 | 642 | ||
643 | hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, | 643 | hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, |
644 | data, data->groups); | 644 | data, data->groups); |
645 | if (unlikely(IS_ERR(hwmon_dev))) | 645 | return PTR_ERR_OR_ZERO(hwmon_dev); |
646 | return PTR_ERR(hwmon_dev); | ||
647 | |||
648 | return 0; | ||
649 | } | 646 | } |
650 | 647 | ||
651 | static const struct i2c_device_id max16065_id[] = { | 648 | static const struct i2c_device_id max16065_id[] = { |