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/b44.c | |
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/b44.c')
-rw-r--r-- | drivers/net/b44.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 15032f2c781..c4e12b5cbb9 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -608,8 +608,7 @@ static void b44_tx(struct b44 *bp) | |||
608 | struct ring_info *rp = &bp->tx_buffers[cons]; | 608 | struct ring_info *rp = &bp->tx_buffers[cons]; |
609 | struct sk_buff *skb = rp->skb; | 609 | struct sk_buff *skb = rp->skb; |
610 | 610 | ||
611 | if (unlikely(skb == NULL)) | 611 | BUG_ON(skb == NULL); |
612 | BUG(); | ||
613 | 612 | ||
614 | pci_unmap_single(bp->pdev, | 613 | pci_unmap_single(bp->pdev, |
615 | pci_unmap_addr(rp, mapping), | 614 | pci_unmap_addr(rp, mapping), |