From: Yang Li Date: Mon, 15 Mar 2021 07:24:56 +0000 (+0800) Subject: powerpc/xive: use true and false for bool variable X-Git-Tag: accepted/tizen/unified/20230118.172025~7331^2~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9214cf0f48cac3c6aa86f34e14969b5eccb72fad;p=platform%2Fkernel%2Flinux-rpi.git 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 Reported-by: Abaci Robot Signed-off-by: Yang Li Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/1615793096-83758-1-git-send-email-yang.lee@linux.alibaba.com --- diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c index 01ccc078..f143b6f 100644 --- 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