diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-06 15:03:04 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-06 15:03:04 -0400 |
commit | 8f4aff6cb178b0a580ee206e7cca63e2d31f4a4e (patch) | |
tree | ccf26a8f693970f939f470ea3500bd585a4a7bb9 | |
parent | c7bec5aba52392aa8d675b8722735caf4a8b7265 (diff) |
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>
-rw-r--r-- | drivers/net/eepro.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index fd6e97891e73..a4eb0dc99ecf 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -994,16 +994,6 @@ static int eepro_open(struct net_device *dev) | |||
994 | return -EAGAIN; | 994 | return -EAGAIN; |
995 | } | 995 | } |
996 | 996 | ||
997 | #ifdef irq2dev_map | ||
998 | if (((irq2dev_map[dev->irq] != 0) | ||
999 | || (irq2dev_map[dev->irq] = dev) == 0) && | ||
1000 | (irq2dev_map[dev->irq]!=dev)) { | ||
1001 | /* printk("%s: IRQ map wrong\n", dev->name); */ | ||
1002 | free_irq(dev->irq, dev); | ||
1003 | return -EAGAIN; | ||
1004 | } | ||
1005 | #endif | ||
1006 | |||
1007 | /* Initialize the 82595. */ | 997 | /* Initialize the 82595. */ |
1008 | 998 | ||
1009 | eepro_sw2bank2(ioaddr); /* be CAREFUL, BANK 2 now */ | 999 | eepro_sw2bank2(ioaddr); /* be CAREFUL, BANK 2 now */ |
@@ -1282,10 +1272,6 @@ static int eepro_close(struct net_device *dev) | |||
1282 | /* release the interrupt */ | 1272 | /* release the interrupt */ |
1283 | free_irq(dev->irq, dev); | 1273 | free_irq(dev->irq, dev); |
1284 | 1274 | ||
1285 | #ifdef irq2dev_map | ||
1286 | irq2dev_map[dev->irq] = 0; | ||
1287 | #endif | ||
1288 | |||
1289 | /* Update the statistics here. What statistics? */ | 1275 | /* Update the statistics here. What statistics? */ |
1290 | 1276 | ||
1291 | return 0; | 1277 | return 0; |