diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-10-26 13:02:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-26 13:02:13 -0400 |
commit | 06d6e6d2e4ef61172f342fddeea5cfa465d81578 (patch) | |
tree | d16add332aa264a1f60fd48302d1f2d07981fcb5 /drivers | |
parent | 7932c2e55c707350ac166effea2f49afe2e47400 (diff) |
drivers/net: sgiseeq: fix return on error
If we continue on error, we'd likely free the IRQ that we
didn't get, right?
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/sgiseeq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index 9265315baa0b..3a0cc63428ee 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c | |||
@@ -531,7 +531,7 @@ static int sgiseeq_open(struct net_device *dev) | |||
531 | 531 | ||
532 | if (request_irq(irq, sgiseeq_interrupt, 0, sgiseeqstr, dev)) { | 532 | if (request_irq(irq, sgiseeq_interrupt, 0, sgiseeqstr, dev)) { |
533 | printk(KERN_ERR "Seeq8003: Can't get irq %d\n", dev->irq); | 533 | printk(KERN_ERR "Seeq8003: Can't get irq %d\n", dev->irq); |
534 | err = -EAGAIN; | 534 | return -EAGAIN; |
535 | } | 535 | } |
536 | 536 | ||
537 | err = init_seeq(dev, sp, sregs); | 537 | err = init_seeq(dev, sp, sregs); |