diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-06 16:03:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 18:01:12 -0700 |
commit | 7c0368211de94c1bf646f8de11c9b0dee9d417d9 (patch) | |
tree | 7e8e4dd9c1ed9276b7e054bc3af66419ec3917b1 | |
parent | 88f9802c4f37dd6be588feae24f74e26aacb1779 (diff) |
arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO
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>
-rw-r--r-- | arch/sh/kernel/time.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 552c8fcf941..d6d0a986c6e 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); |