projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d5689
)
hwmon: (max16065) Use PTR_ERR_OR_ZERO
author
Axel Lin
<axel.lin@ingics.com>
Fri, 11 Jul 2014 08:45:37 +0000
(16:45 +0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:38 +0000
(07:01 -0700)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max16065.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/max16065.c
b/drivers/hwmon/max16065.c
index d4efc79d7b9371e69dc6e5c5972348020f19a1aa..162401aaef71b444534db0876cbb6ad93e48b3a5 100644
(file)
--- a/
drivers/hwmon/max16065.c
+++ b/
drivers/hwmon/max16065.c
@@
-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[] = {
This page took
0.024598 seconds
and
5
git commands to generate.