Commit 644c12d7 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Adrian Bunk

BUG_ON cleanup in drivers/net/tokenring/

This patch converts one if() BUG(); to BUG_ON();
so it can be safely optimized away.
Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 52e5f9d1
...@@ -224,8 +224,7 @@ static void __devexit tms_pci_detach (struct pci_dev *pdev) ...@@ -224,8 +224,7 @@ static void __devexit tms_pci_detach (struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
if (!dev) BUG_ON(!dev);
BUG();
unregister_netdev(dev); unregister_netdev(dev);
release_region(dev->base_addr, TMS_PCI_IO_EXTENT); release_region(dev->base_addr, TMS_PCI_IO_EXTENT);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment