Message ID | 20210102175859.335447-4-adam@l4re.org |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/irqchip/irq-ixp4xx.c b/drivers/irqchip/irq-ixp4xx.c index 37e0749215c7..54dcffe2309f 100644 --- a/drivers/irqchip/irq-ixp4xx.c +++ b/drivers/irqchip/irq-ixp4xx.c @@ -355,7 +355,7 @@ void __init ixp4xx_irq_init(resource_size_t irqbase, &fwspec, false, NULL); - if (ret < 0) { + if (ret <= 0) { pr_crit("IXP4XX: can not allocate irqs in hierarchy %d\n", ret); return;
0 is not a proper IRQ number and also indicates failure. Signed-off-by: Adam Lackorzynski <adam@l4re.org> --- drivers/irqchip/irq-ixp4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)