From 7c0368211de94c1bf646f8de11c9b0dee9d417d9 Mon Sep 17 00:00:00 2001 From: Fabian Frederick Date: Wed, 6 Aug 2014 16:03:43 -0700 Subject: arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO Replace IS_ERR/PTR_ERR. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/sh/kernel/time.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'arch/sh/kernel/time.c') diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 552c8fc..d6d0a98 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c @@ -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); -- cgit v1.1