[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1612865275-67721-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Tue, 9 Feb 2021 18:07:55 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: tglx@...utronix.de
Cc: maz@...nel.org, guoren@...nel.org, linux-kernel@...r.kernel.org,
linux-csky@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] irqchip/csky: Use true and false for bool variable
Fix the following coccicheck warning:
./drivers/irqchip/irq-csky-apb-intc.c:139:9-10: WARNING: return of 0/1
in function 'handle_irq_perbit' with return type bool.
Reported-by: Abaci Robot<abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/irqchip/irq-csky-apb-intc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-csky-apb-intc.c b/drivers/irqchip/irq-csky-apb-intc.c
index 5a2ec43..5e18ba9 100644
--- a/drivers/irqchip/irq-csky-apb-intc.c
+++ b/drivers/irqchip/irq-csky-apb-intc.c
@@ -136,11 +136,11 @@ static inline bool handle_irq_perbit(struct pt_regs *regs, u32 hwirq,
u32 irq_base)
{
if (hwirq == 0)
- return 0;
+ return false;
handle_domain_irq(root_domain, irq_base + __fls(hwirq), regs);
- return 1;
+ return true;
}
/* gx6605s 64 irqs interrupt controller */
--
1.8.3.1
Powered by blists - more mailing lists