projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eeca7a
)
powerpc/xive: use true and false for bool variable
author
Yang Li
<yang.lee@linux.alibaba.com>
Mon, 15 Mar 2021 07:24:56 +0000
(15:24 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 29 Mar 2021 02:22:13 +0000
(13:22 +1100)
fixed the following coccicheck:
./arch/powerpc/sysdev/xive/spapr.c:552:8-9: WARNING: return of 0/1 in
function 'xive_spapr_match' with return type bool
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/1615793096-83758-1-git-send-email-yang.lee@linux.alibaba.com
arch/powerpc/sysdev/xive/spapr.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/xive/spapr.c
b/arch/powerpc/sysdev/xive/spapr.c
index 01ccc0786ada6cdd7551c4c514ffa4f3e93b2db6..f143b6f111ac0a2b0efcbf61a757d8cfe4aa3f94 100644
(file)
--- a/
arch/powerpc/sysdev/xive/spapr.c
+++ b/
arch/powerpc/sysdev/xive/spapr.c
@@
-549,7
+549,7
@@
static void xive_spapr_cleanup_queue(unsigned int cpu, struct xive_cpu *xc,
static bool xive_spapr_match(struct device_node *node)
{
/* Ignore cascaded controllers for the moment */
- return
1
;
+ return
true
;
}
#ifdef CONFIG_SMP