From: Fabian Frederick Date: Wed, 6 Aug 2014 23:03:43 +0000 (-0700) Subject: arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c0368211de94c1bf646f8de11c9b0dee9d417d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 552c8fcf9416..d6d0a986c6e9 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);