diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-03 23:34:11 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-10-03 23:34:11 +0200 |
commit | 644c12d7f695c0a30662ac781b0f06f79d7f9bab (patch) | |
tree | 345d3ab49fa9f9e553b9f160fcaddd806274b38a | |
parent | 52e5f9d1cf0b10b24317037dcd1c9be38ca7011c (diff) | |
download | op-kernel-dev-644c12d7f695c0a30662ac781b0f06f79d7f9bab.zip op-kernel-dev-644c12d7f695c0a30662ac781b0f06f79d7f9bab.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index 7d3e270..3b2f00b 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) { struct net_device *dev = pci_get_drvdata(pdev); - if (!dev) - BUG(); + BUG_ON(!dev); unregister_netdev(dev); release_region(dev->base_addr, TMS_PCI_IO_EXTENT); free_irq(dev->irq, dev); |