aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-10-03 17:34:11 -0400
committerAdrian Bunk <bunk@stusta.de>2006-10-03 17:34:11 -0400
commit644c12d7f695c0a30662ac781b0f06f79d7f9bab (patch)
tree345d3ab49fa9f9e553b9f160fcaddd806274b38a
parent52e5f9d1cf0b10b24317037dcd1c9be38ca7011c (diff)
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: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r--drivers/net/tokenring/tmspci.c3
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);