diff options
Diffstat (limited to 'drivers/net/tokenring/tmspci.c')
-rw-r--r-- | drivers/net/tokenring/tmspci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index 7d3e270c4f45..3b2f00b9b7bd 100644 --- a/drivers/net/tokenring/tmspci.c +++ b/drivers/net/tokenring/tmspci.c | |||
@@ -224,8 +224,7 @@ static void __devexit tms_pci_detach (struct pci_dev *pdev) | |||
224 | { | 224 | { |
225 | struct net_device *dev = pci_get_drvdata(pdev); | 225 | struct net_device *dev = pci_get_drvdata(pdev); |
226 | 226 | ||
227 | if (!dev) | 227 | BUG_ON(!dev); |
228 | BUG(); | ||
229 | unregister_netdev(dev); | 228 | unregister_netdev(dev); |
230 | release_region(dev->base_addr, TMS_PCI_IO_EXTENT); | 229 | release_region(dev->base_addr, TMS_PCI_IO_EXTENT); |
231 | free_irq(dev->irq, dev); | 230 | free_irq(dev->irq, dev); |