提交 8f4aff6c 编写于 作者: J Jeff Garzik

drivers/net/eepro: kill dead code

The irq2dev_map has not been used for a long time.
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 c7bec5ab
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册