mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2025-01-15 21:48:02 +00:00
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>
This commit is contained in:
parent
52e5f9d1cf
commit
644c12d7f6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user