Commit 99f4ff41 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: at91_can: at91_open(): forward request_irq()'s return value in case or an error

If request_irq() fails, forward the return value.

Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-15-9987d53600e0@pengutronix.deSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 8227088c
...@@ -1128,11 +1128,10 @@ static int at91_open(struct net_device *dev) ...@@ -1128,11 +1128,10 @@ static int at91_open(struct net_device *dev)
goto out; goto out;
/* register interrupt handler */ /* register interrupt handler */
if (request_irq(dev->irq, at91_irq, IRQF_SHARED, err = request_irq(dev->irq, at91_irq, IRQF_SHARED,
dev->name, dev)) { dev->name, dev);
err = -EAGAIN; if (err)
goto out_close; goto out_close;
}
/* start chip and queuing */ /* start chip and queuing */
at91_chip_start(dev); at91_chip_start(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment