From: Hanjun Guo <guohanjun@huawei.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Marc Zyngier <marc.zyngier@arm.com>
Cc: <linux-kernel@vger.kernel.org>, Ma Jun <majun258@huawei.com>,
"Agustin Vega-Frias" <agustinv@codeaurora.org>,
John Garry <john.garry@huawei.com>,
Hanjun Guo <hanjun.guo@linaro.org>
Subject: [PATCH 2/2] genirq: Use is_fwnode_irqchip() directly
Date: Thu, 6 Jul 2017 12:35:32 +0800 [thread overview]
Message-ID: <1499315732-63950-2-git-send-email-guohanjun@huawei.com> (raw)
In-Reply-To: <1499315732-63950-1-git-send-email-guohanjun@huawei.com>
From: Hanjun Guo <hanjun.guo@linaro.org>
is_fwnode_irqchip() already check fwnode is NULL or not,
just use is_fwnode_irqchip() directly.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
kernel/irq/irqdomain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 1bc38fa..14a21a3 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -137,7 +137,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
if (WARN_ON(!domain))
return NULL;
- if (fwnode && is_fwnode_irqchip(fwnode)) {
+ if (is_fwnode_irqchip(fwnode)) {
fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
switch (fwid->type) {
--
1.7.12.4
next prev parent reply other threads:[~2017-07-06 4:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-06 4:35 [PATCH 1/2] genirq: Get the fwnode back for irqchips being probed via ACPI namespace Hanjun Guo
2017-07-06 4:35 ` Hanjun Guo [this message]
2017-07-06 5:46 ` [PATCH 2/2] genirq: Use is_fwnode_irqchip() directly Ethan Zhao
2017-07-06 6:17 ` Hanjun Guo
2017-07-06 7:43 ` [PATCH 1/2] genirq: Get the fwnode back for irqchips being probed via ACPI namespace Marc Zyngier
[not found] ` <595DFC87.9060800@huawei.com>
2017-07-06 13:05 ` Marc Zyngier
2017-07-07 3:27 ` Hanjun Guo
2017-07-07 8:17 ` Marc Zyngier
2017-07-07 9:38 ` Hanjun Guo
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=1499315732-63950-2-git-send-email-guohanjun@huawei.com \
--to=guohanjun@huawei.com \
--cc=agustinv@codeaurora.org \
--cc=hanjun.guo@linaro.org \
--cc=john.garry@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=majun258@huawei.com \
--cc=marc.zyngier@arm.com \
--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
Powered by JetHome