Skip to content

Commit

Permalink
drivers/net/eepro: kill dead code
Browse files Browse the repository at this point in the history
The irq2dev_map has not been used for a long time.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Jeff Garzik committed Oct 6, 2006
1 parent c7bec5a commit 8f4aff6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions drivers/net/eepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8f4aff6

Please sign in to comment.