projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f4b78
)
parisc: pdt: Use PTR_ERR_OR_ZERO() to simplify code
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 9 Aug 2023 09:19:53 +0000
(17:19 +0800)
committer
Helge Deller
<deller@gmx.de>
Thu, 10 Aug 2023 15:32:09 +0000
(17:32 +0200)
Return PTR_ERR_OR_ZERO() instead of return 0 or PTR_ERR() to
simplify code.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/pdt.c
patch
|
blob
|
history
diff --git
a/arch/parisc/kernel/pdt.c
b/arch/parisc/kernel/pdt.c
index 0d24735bd9182af0e6149b5ef1faa85d705e4ec2..0f9b3b5914cf6994862568f80cc348baed60882a 100644
(file)
--- a/
arch/parisc/kernel/pdt.c
+++ b/
arch/parisc/kernel/pdt.c
@@
-354,10
+354,8
@@
static int __init pdt_initcall(void)
return -ENODEV;
kpdtd_task = kthread_run(pdt_mainloop, NULL, "kpdtd");
- if (IS_ERR(kpdtd_task))
- return PTR_ERR(kpdtd_task);
- return
0
;
+ return
PTR_ERR_OR_ZERO(kpdtd_task)
;
}
late_initcall(pdt_initcall);