drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO
authorFabian Frederick <fabf@skynet.be>
Fri, 8 Aug 2014 21:22:33 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:25 +0000 (15:57 -0700)
replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/parport/parport_ip32.c

index c864f82bd37de9a369ed82b790676de29a4d59fb..30e981be14c237f9fefb94a0adc9cb04c5b71e23 100644 (file)
@@ -2204,7 +2204,7 @@ static int __init parport_ip32_init(void)
 {
        pr_info(PPIP32 "SGI IP32 built-in parallel port driver v0.6\n");
        this_port = parport_ip32_probe_port();
-       return IS_ERR(this_port) ? PTR_ERR(this_port) : 0;
+       return PTR_ERR_OR_ZERO(this_port);
 }
 
 /**