diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 20:19:26 +0400 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 20:19:26 +0400 |
commit | 6dd44a74469c203c5106ada2082c46267b4ac674 (patch) | |
tree | dfc0b29c97b3147cecfcc874c1ae952b25841c71 /drivers/isdn/hisax/hisax_fcpcipnp.c | |
parent | 56ee48277fa214b3b7b0fd91e7fd3464e12597de (diff) | |
download | linux-6dd44a74469c203c5106ada2082c46267b4ac674.tar.xz |
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_fcpcipnp.c')
-rw-r--r-- | drivers/isdn/hisax/hisax_fcpcipnp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/isdn/hisax/hisax_fcpcipnp.c b/drivers/isdn/hisax/hisax_fcpcipnp.c index dc7ef957e897..dbcca287ee2c 100644 --- a/drivers/isdn/hisax/hisax_fcpcipnp.c +++ b/drivers/isdn/hisax/hisax_fcpcipnp.c @@ -387,8 +387,7 @@ static void hdlc_fill_fifo(struct fritz_bcs *bcs) DBG(0x40, "hdlc_fill_fifo"); - if (skb->len == 0) - BUG(); + BUG_ON(skb->len == 0); bcs->ctrl.sr.cmd &= ~HDLC_CMD_XME; if (bcs->tx_skb->len > bcs->fifo_size) { @@ -630,9 +629,7 @@ static void fritz_b_l2l1(struct hisax_if *ifc, int pr, void *arg) switch (pr) { case PH_DATA | REQUEST: - if (bcs->tx_skb) - BUG(); - + BUG_ON(bcs->tx_skb); bcs->tx_skb = skb; DBG_SKB(1, skb); hdlc_fill_fifo(bcs); |