Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d98642c3 authored by Russell King's avatar Russell King
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);