diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-04 21:03:10 +0200 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-07-18 16:11:36 +0800 |
commit | d3a22442307a37225d99a5137fcbd9fbb2f5c343 (patch) | |
tree | 58f29e663daeb2f9832c00fbcdbf85332730ccb1 /arch/arm/mach-imx/devices | |
parent | 26651c4376454b8a9422577e57c59b6cc37c603d (diff) | |
download | op-kernel-dev-d3a22442307a37225d99a5137fcbd9fbb2f5c343.zip op-kernel-dev-d3a22442307a37225d99a5137fcbd9fbb2f5c343.tar.gz |
ARM: imx: use PTR_ERR_OR_ZERO
replace IS_ERR/PTR_ERR
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/devices')
-rw-r--r-- | arch/arm/mach-imx/devices/platform-mxc_rnga.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/devices/platform-mxc_rnga.c b/arch/arm/mach-imx/devices/platform-mxc_rnga.c index c58404b..851fbc8a 100644 --- a/arch/arm/mach-imx/devices/platform-mxc_rnga.c +++ b/arch/arm/mach-imx/devices/platform-mxc_rnga.c @@ -48,9 +48,6 @@ static int __init imxXX_add_mxc_rnga(void) #endif /* if defined(CONFIG_SOC_IMX31) */ ret = ERR_PTR(-ENODEV); - if (IS_ERR(ret)) - return PTR_ERR(ret); - - return 0; + return PTR_ERR_OR_ZERO(ret); } arch_initcall(imxXX_add_mxc_rnga); |