projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e5f9d
)
BUG_ON cleanup in drivers/net/tokenring/
author
Eric Sesterhenn
<snakebyte@gmx.de>
Tue, 3 Oct 2006 21:34:11 +0000
(23:34 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Tue, 3 Oct 2006 21:34:11 +0000
(23:34 +0200)
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>
drivers/net/tokenring/tmspci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tokenring/tmspci.c
b/drivers/net/tokenring/tmspci.c
index 7d3e270c4f4539888d9caf0162688eaeb643ea80..3b2f00b9b7bd89a717734e16fa065a1e6991cd81 100644
(file)
--- 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);