Skip to content

Commit 4609c6e

Browse files
Hongbo LiKAGA-KOKO
authored andcommitted
irqdomain: Use IS_ERR_OR_NULL() in irq_domain_trim_hierarchy()
Use IS_ERR_OR_NULL() instead of open-coding a NULL and a error pointer check. Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent bf1e0fb commit 4609c6e

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
@@ -1403,7 +1403,7 @@ static int irq_domain_trim_hierarchy(unsigned int virq)
14031403
tail = NULL;
14041404

14051405
/* The first entry must have a valid irqchip */
1406-
if (!irq_data->chip || IS_ERR(irq_data->chip))
1406+
if (IS_ERR_OR_NULL(irq_data->chip))
14071407
return -EINVAL;
14081408

14091409
/*

0 commit comments

Comments
 (0)