diff options
Diffstat (limited to 'drivers/net/tokenring/abyss.c')
-rw-r--r-- | drivers/net/tokenring/abyss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/tokenring/abyss.c b/drivers/net/tokenring/abyss.c index 9345e68c451e..649d8ea354f5 100644 --- a/drivers/net/tokenring/abyss.c +++ b/drivers/net/tokenring/abyss.c | |||
@@ -438,8 +438,7 @@ static void __devexit abyss_detach (struct pci_dev *pdev) | |||
438 | { | 438 | { |
439 | struct net_device *dev = pci_get_drvdata(pdev); | 439 | struct net_device *dev = pci_get_drvdata(pdev); |
440 | 440 | ||
441 | if (!dev) | 441 | BUG_ON(!dev); |
442 | BUG(); | ||
443 | unregister_netdev(dev); | 442 | unregister_netdev(dev); |
444 | release_region(dev->base_addr-0x10, ABYSS_IO_EXTENT); | 443 | release_region(dev->base_addr-0x10, ABYSS_IO_EXTENT); |
445 | free_irq(dev->irq, dev); | 444 | free_irq(dev->irq, dev); |