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:
c48cd65
)
ARM: IMX: remove unnecessary use of IS_ERR_VALUE()
author
Russell King
<
[email protected]
>
Wed, 13 Mar 2013 20:49:10 +0000
(20:49 +0000)
committer
Russell King
<
[email protected]
>
Thu, 2 May 2013 18:54:24 +0000
(19:54 +0100)
device_register() returns -ve values for errors, and zero for success.
There's no need to obfuscate the code with IS_ERR_VALUE().
Signed-off-by: Russell King <
[email protected]
>
arch/arm/mach-imx/devices/devices.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/devices/devices.c
b/arch/arm/mach-imx/devices/devices.c
index 1b37482407f911461846fc95f0528a1ed2fc6b70..1b4366a0e7c04b14ac986d136e197a9ffc4468c3 100644
(file)
--- a/
arch/arm/mach-imx/devices/devices.c
+++ b/
arch/arm/mach-imx/devices/devices.c
@@
-37,7
+37,7
@@
int __init mxc_device_init(void)
int ret;
ret = device_register(&mxc_aips_bus);
- if (
IS_ERR_VALUE(ret)
)
+ if (
ret < 0
)
goto done;
ret = device_register(&mxc_ahb_bus);