arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO
authorFabian Frederick <fabf@skynet.be>
Wed, 6 Aug 2014 23:03:43 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:12 +0000 (18:01 -0700)
Replace IS_ERR/PTR_ERR.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/kernel/time.c

index 552c8fcf9416413f3b8ebf606371d88cb85eebeb..d6d0a986c6e937680186a32bbfd602c5ff40d10e 100644 (file)
@@ -80,10 +80,8 @@ static int __init rtc_generic_init(void)
                return -ENODEV;
 
        pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
-       if (IS_ERR(pdev))
-               return PTR_ERR(pdev);
 
-       return 0;
+       return PTR_ERR_OR_ZERO(pdev);
 }
 module_init(rtc_generic_init);