Commit d98642c3 authored by Russell King's avatar Russell King

ARM: IMX: remove unnecessary use of IS_ERR_VALUE()

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c48cd659
...@@ -37,7 +37,7 @@ int __init mxc_device_init(void) ...@@ -37,7 +37,7 @@ int __init mxc_device_init(void)
int ret; int ret;
ret = device_register(&mxc_aips_bus); ret = device_register(&mxc_aips_bus);
if (IS_ERR_VALUE(ret)) if (ret < 0)
goto done; goto done;
ret = device_register(&mxc_ahb_bus); ret = device_register(&mxc_ahb_bus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment