diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 11:44:44 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-07-04 05:10:51 -0700 |
commit | 1261674a2dded2b5b055f51fb44677a8654d3f06 (patch) | |
tree | b62190ef934006dcd7d2cc4122c91285e3d61142 /arch/arm/mach-omap2/fb.c | |
parent | 9847bd481084249b30308776ecf660b486a6c3d8 (diff) |
ARM: OMAP2+: Cocci spatch "ptr_ret.spatch"
Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/fb.c')
-rw-r--r-- | arch/arm/mach-omap2/fb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/fb.c b/arch/arm/mach-omap2/fb.c index 190ae493c6e..2ca33cc0c48 100644 --- a/arch/arm/mach-omap2/fb.c +++ b/arch/arm/mach-omap2/fb.c @@ -83,10 +83,7 @@ static int __init omap_init_vrfb(void) pdev = platform_device_register_resndata(NULL, "omapvrfb", -1, res, num_res, NULL, 0); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - else - return 0; + return PTR_RET(pdev); } omap_arch_initcall(omap_init_vrfb); |