diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 11:52:48 (GMT) |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 11:52:48 (GMT) |
commit | 5d9428de1a9785f10a4339f80b717be665ba51c7 (patch) | |
tree | 27eeed8a87ef248cec694032463f0d8f3b38fbcc /drivers/net/ne2k-pci.c | |
parent | 7e99e9b66336565f0088ea59d848ab187f9689c3 (diff) | |
download | linux-fsl-qoriq-5d9428de1a9785f10a4339f80b717be665ba51c7.tar.xz |
BUG_ON() Conversion in drivers/net/
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/net/ne2k-pci.c')
-rw-r--r-- | drivers/net/ne2k-pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c index d11821d..ced9fdb 100644 --- a/drivers/net/ne2k-pci.c +++ b/drivers/net/ne2k-pci.c @@ -645,9 +645,7 @@ static void __devexit ne2k_pci_remove_one (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, NE_IO_EXTENT); free_netdev(dev); |