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>
This commit is contained in:
committed by
Adrian Bunk
parent
7e99e9b663
commit
5d9428de1a
@ -735,8 +735,7 @@ static int __devexit madgemc_remove(struct device *device)
|
||||
struct net_local *tp;
|
||||
struct card_info *card;
|
||||
|
||||
if (!dev)
|
||||
BUG();
|
||||
BUG_ON(!dev);
|
||||
|
||||
tp = dev->priv;
|
||||
card = tp->tmspriv;
|
||||
|
Reference in New Issue
Block a user