[irqchip: irq/irqchip-next] irqchip/csky: Return true/false (not 1/0) from bool functions

From: irqchip-bot for Haowen Bai
Date: Wed May 04 2022 - 12:16:28 EST


The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID: 0c16e931a735500f15db74916db56c698d8ff735
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/0c16e931a735500f15db74916db56c698d8ff735
Author: Haowen Bai <baihaowen@xxxxxxxxx>
AuthorDate: Thu, 17 Mar 2022 11:21:24 +08:00
Committer: Marc Zyngier <maz@xxxxxxxxxx>
CommitterDate: Wed, 04 May 2022 16:49:47 +01:00

irqchip/csky: Return true/false (not 1/0) from bool functions

Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions.

Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx>
Acked-by: Guo Ren <guoren@xxxxxxxxxx>
Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx>
Link: https://lore.kernel.org/r/1647487284-30088-1-git-send-email-baihaowen@xxxxxxxxx
---
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 d36f536..42d8a24 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;

generic_handle_domain_irq(root_domain, irq_base + __fls(hwirq));

- return 1;
+ return true;
}

/* gx6605s 64 irqs interrupt controller */