summaryrefslogtreecommitdiffstats
path: root/kernel/irq/irqdomain.c
diff options
context:
space:
mode:
authorZenghui Yu <yuzenghui@huawei.com>2020-07-16 16:39:05 +0800
committerMarc Zyngier <maz@kernel.org>2020-07-27 08:55:02 +0100
commit45e9504f109b84986ba9d25a273a5d5bd3f3e9d9 (patch)
treec1d6e534cb189eb46a1c579ed9cc45acdf8e31ec /kernel/irq/irqdomain.c
parent57a744e9553fb9f4900650bc24e523d4979b44d9 (diff)
downloadlinux-45e9504f109b84986ba9d25a273a5d5bd3f3e9d9.tar.bz2
genirq/irqdomain: Remove redundant NULL pointer check on fwnode
The is_fwnode_irqchip() helper will check if the fwnode_handle is empty. There is no need to perform a redundant check outside of it. Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200716083905.287-1-yuzenghui@huawei.com
Diffstat (limited to 'kernel/irq/irqdomain.c')
-rw-r--r--kernel/irq/irqdomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index a4c2c915511d..155460fc0147 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -142,7 +142,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
if (!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) {