projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f9802
)
arch/sh/kernel/time.c: use PTR_ERR_OR_ZERO
author
Fabian Frederick
<fabf@skynet.be>
Wed, 6 Aug 2014 23:03:43 +0000
(16:03 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/time.c
b/arch/sh/kernel/time.c
index 552c8fcf9416413f3b8ebf606371d88cb85eebeb..d6d0a986c6e937680186a32bbfd602c5ff40d10e 100644
(file)
--- 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);