diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 07:52:48 -0400 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 07:52:48 -0400 |
commit | 5d9428de1a9785f10a4339f80b717be665ba51c7 (patch) | |
tree | 27eeed8a87ef248cec694032463f0d8f3b38fbcc /drivers/net/irda | |
parent | 7e99e9b66336565f0088ea59d848ab187f9689c3 (diff) |
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/irda')
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index 63d38fbbd04e..f530686bd09f 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
@@ -695,8 +695,7 @@ static int sa1100_irda_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |||
695 | /* | 695 | /* |
696 | * We must not be transmitting... | 696 | * We must not be transmitting... |
697 | */ | 697 | */ |
698 | if (si->txskb) | 698 | BUG_ON(si->txskb); |
699 | BUG(); | ||
700 | 699 | ||
701 | netif_stop_queue(dev); | 700 | netif_stop_queue(dev); |
702 | 701 | ||