ac3200: fix error path

Do not call free_irq() if request_irq() failed.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Kulikov Vasiliy 2010-07-09 02:28:09 +00:00 committed by David S. Miller
parent 451d33dd22
commit ba80a25228
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ static int __init ac_probe1(int ioaddr, struct net_device *dev)
retval = request_irq(dev->irq, ei_interrupt, 0, DRV_NAME, dev);
if (retval) {
printk (" nothing! Unable to get IRQ %d.\n", dev->irq);
goto out1;
goto out;
}
printk(" IRQ %d, %s port\n", dev->irq, port_name[dev->if_port]);