Skip to content

Commit d0afed8

Browse files
Ruan JinjieMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2f54db4 commit d0afed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-pruss-intc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ static int pruss_intc_probe(struct platform_device *pdev)
565565
continue;
566566

567567
irq = platform_get_irq_byname(pdev, irq_names[i]);
568-
if (irq <= 0) {
569-
ret = (irq == 0) ? -EINVAL : irq;
568+
if (irq < 0) {
569+
ret = irq;
570570
goto fail_irq;
571571
}
572572

0 commit comments

Comments
 (0)