From: Russell King Date: Wed, 13 Mar 2013 20:49:10 +0000 (+0000) Subject: ARM: IMX: remove unnecessary use of IS_ERR_VALUE() X-Git-Tag: next-20130320~100^2~1^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4e6284c926be37356938034aedbdc9a0e58a28d4;p=karo-tx-linux.git 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 --- diff --git a/arch/arm/mach-imx/devices/devices.c b/arch/arm/mach-imx/devices/devices.c index 1b37482407f9..1b4366a0e7c0 100644 --- 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);