Commit 7c036821 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO

Replace IS_ERR/PTR_ERR.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 88f9802c
...@@ -80,10 +80,8 @@ static int __init rtc_generic_init(void) ...@@ -80,10 +80,8 @@ static int __init rtc_generic_init(void)
return -ENODEV; return -ENODEV;
pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); 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); module_init(rtc_generic_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment