Browse Source

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>
Russell King 12 years ago
parent
commit
d98642c3ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mach-imx/devices/devices.c

+ 1 - 1
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);