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>
这个提交包含在:
Eric Sesterhenn
2006-04-02 13:52:48 +02:00
提交者 Adrian Bunk
父节点 7e99e9b663
当前提交 5d9428de1a
修改 15 个文件,包含 24 行新增49 行删除

查看文件

@@ -695,8 +695,7 @@ static int sa1100_irda_hard_xmit(struct sk_buff *skb, struct net_device *dev)
/*
* We must not be transmitting...
*/
if (si->txskb)
BUG();
BUG_ON(si->txskb);
netif_stop_queue(dev);