drivers/net/eepro: kill dead code
The irq2dev_map has not been used for a long time. Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
c7bec5aba5
commit
8f4aff6cb1
|
@ -994,16 +994,6 @@ static int eepro_open(struct net_device *dev)
|
|||
return -EAGAIN;
|
||||
}
|
||||
|
||||
#ifdef irq2dev_map
|
||||
if (((irq2dev_map[dev->irq] != 0)
|
||||
|| (irq2dev_map[dev->irq] = dev) == 0) &&
|
||||
(irq2dev_map[dev->irq]!=dev)) {
|
||||
/* printk("%s: IRQ map wrong\n", dev->name); */
|
||||
free_irq(dev->irq, dev);
|
||||
return -EAGAIN;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize the 82595. */
|
||||
|
||||
eepro_sw2bank2(ioaddr); /* be CAREFUL, BANK 2 now */
|
||||
|
@ -1282,10 +1272,6 @@ static int eepro_close(struct net_device *dev)
|
|||
/* release the interrupt */
|
||||
free_irq(dev->irq, dev);
|
||||
|
||||
#ifdef irq2dev_map
|
||||
irq2dev_map[dev->irq] = 0;
|
||||
#endif
|
||||
|
||||
/* Update the statistics here. What statistics? */
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue