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: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
c48cd65989
commit
d98642c3ee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue