irqchip/irq-pruss-intc: Do not check for 0 return after calling platform_get_irq()
It is not possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230803083452.4085650-3-ruanjinjie@huawei.com
This commit is contained in:
parent
2f54db449b
commit
d0afed8339
@ -565,8 +565,8 @@ static int pruss_intc_probe(struct platform_device *pdev)
|
||||
continue;
|
||||
|
||||
irq = platform_get_irq_byname(pdev, irq_names[i]);
|
||||
if (irq <= 0) {
|
||||
ret = (irq == 0) ? -EINVAL : irq;
|
||||
if (irq < 0) {
|
||||
ret = irq;
|
||||
goto fail_irq;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user