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
@@ -203,8 +203,7 @@ static int eql_open(struct net_device *dev)
|
||||
printk(KERN_INFO "%s: remember to turn off Van-Jacobson compression on "
|
||||
"your slave devices.\n", dev->name);
|
||||
|
||||
if (!list_empty(&eql->queue.all_slaves))
|
||||
BUG();
|
||||
BUG_ON(!list_empty(&eql->queue.all_slaves));
|
||||
|
||||
eql->min_slaves = 1;
|
||||
eql->max_slaves = EQL_DEFAULT_MAX_SLAVES; /* 4 usually... */
|
||||
|
Reference in New Issue
Block a user