From: Haowen Bai <baihaowen@meizu.com>
To: <tglx@linutronix.de>, <maz@kernel.org>, <guoren@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <linux-csky@vger.kernel.org>,
Haowen Bai <baihaowen@meizu.com>
Subject: [PATCH] irqchip: Return true/false (not 1/0) from bool functions
Date: Thu, 17 Mar 2022 11:21:24 +0800 [thread overview]
Message-ID: <1647487284-30088-1-git-send-email-baihaowen@meizu.com> (raw)
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions.
Signed-off-by: Haowen Bai <baihaowen@meizu.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 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 */
--
2.7.4
next reply other threads:[~2022-03-17 3:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 3:21 Haowen Bai [this message]
2022-03-17 15:40 ` Guo Ren
2022-05-04 16:15 ` [irqchip: irq/irqchip-next] irqchip/csky: " irqchip-bot for Haowen Bai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1647487284-30088-1-git-send-email-baihaowen@meizu.com \
--to=baihaowen@meizu.com \
--cc=guoren@kernel.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®