mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 10:17:32 +00:00
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 <lihongbo22@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20240828122724.3697447-1-lihongbo22@huawei.com
This commit is contained in:
parent
bf1e0fb69a
commit
4609c6eab6
@ -1403,7 +1403,7 @@ static int irq_domain_trim_hierarchy(unsigned int virq)
|
|||||||
tail = NULL;
|
tail = NULL;
|
||||||
|
|
||||||
/* The first entry must have a valid irqchip */
|
/* The first entry must have a valid irqchip */
|
||||||
if (!irq_data->chip || IS_ERR(irq_data->chip))
|
if (IS_ERR_OR_NULL(irq_data->chip))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user