projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a937536
)
regulator: fan53555: Use PTR_RET function
author
Alexandru Gheorghiu
<
[email protected]
>
Mon, 18 Mar 2013 21:35:31 +0000
(23:35 +0200)
committer
Mark Brown
<
[email protected]
>
Wed, 20 Mar 2013 13:30:12 +0000
(14:30 +0100)
Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.
Signed-off-by: Alexandru Gheorghiu <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/fan53555.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/fan53555.c
b/drivers/regulator/fan53555.c
index 9165b0c40ed32a6b4e8a851e5c81f9b1f68f8be0..f0e1ae52bb05dd5369769d1b8d09f9c206008495 100644
(file)
--- a/
drivers/regulator/fan53555.c
+++ b/
drivers/regulator/fan53555.c
@@
-219,9
+219,7
@@
static int fan53555_regulator_register(struct fan53555_device_info *di,
rdesc->owner = THIS_MODULE;
di->rdev = regulator_register(&di->desc, config);
- if (IS_ERR(di->rdev))
- return PTR_ERR(di->rdev);
- return 0;
+ return PTR_RET(di->rdev);
}