diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 18:19:26 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 18:19:26 +0200 |
commit | 6dd44a74469c203c5106ada2082c46267b4ac674 (patch) | |
tree | dfc0b29c97b3147cecfcc874c1ae952b25841c71 /drivers/isdn/hisax/hisax_isac.c | |
parent | BUG_ON() Conversion in drivers/char (diff) | |
download | linux-6dd44a74469c203c5106ada2082c46267b4ac674.tar.xz linux-6dd44a74469c203c5106ada2082c46267b4ac674.zip |
BUG_ON() Conversion in drivers/isdn
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/isdn/hisax/hisax_isac.c')
-rw-r--r-- | drivers/isdn/hisax/hisax_isac.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/isdn/hisax/hisax_isac.c b/drivers/isdn/hisax/hisax_isac.c index f4972f6c1f5d..81eac344bb03 100644 --- a/drivers/isdn/hisax/hisax_isac.c +++ b/drivers/isdn/hisax/hisax_isac.c @@ -476,12 +476,10 @@ static void isac_fill_fifo(struct isac *isac) unsigned char cmd; u_char *ptr; - if (!isac->tx_skb) - BUG(); + BUG_ON(!isac->tx_skb); count = isac->tx_skb->len; - if (count <= 0) - BUG(); + BUG_ON(count <= 0); DBG(DBG_IRQ, "count %d", count); @@ -859,8 +857,7 @@ void isac_d_l2l1(struct hisax_if *hisax_d_if, int pr, void *arg) dev_kfree_skb(skb); break; } - if (isac->tx_skb) - BUG(); + BUG_ON(isac->tx_skb); isac->tx_skb = skb; isac_fill_fifo(isac); |