Skip to content

Commit 45e9504

Browse files
Zenghui YuMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 57a744e commit 45e9504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/irqdomain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
142142
if (!domain)
143143
return NULL;
144144

145-
if (fwnode && is_fwnode_irqchip(fwnode)) {
145+
if (is_fwnode_irqchip(fwnode)) {
146146
fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
147147

148148
switch (fwid->type) {

0 commit comments

Comments
 (0)