Skip to contentSkip to conversation

powerpc/xive: use true and false for bool variable

PATCH Applied Yang Li 2 participants 2 messages Mar 15, 2021 – Mar 31, 2021 PowerPC

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 powerpc/xive: use true and false for bool variable

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

---
 arch/powerpc/sysdev/xive/spapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/xive/spapr.c +1 -1
index 01ccc078..f143b6f 100644
@@ -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
Signature · 1 line
1.8.3.1