diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 11:19:26 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 11:19:26 -0500 |
commit | 6dd44a74469c203c5106ada2082c46267b4ac674 (patch) | |
tree | dfc0b29c97b3147cecfcc874c1ae952b25841c71 /drivers/isdn/hisax/st5481_b.c | |
parent | 56ee48277fa214b3b7b0fd91e7fd3464e12597de (diff) |
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/st5481_b.c')
-rw-r--r-- | drivers/isdn/hisax/st5481_b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/st5481_b.c b/drivers/isdn/hisax/st5481_b.c index 657817a591fe..22fd5db18d48 100644 --- a/drivers/isdn/hisax/st5481_b.c +++ b/drivers/isdn/hisax/st5481_b.c | |||
@@ -356,9 +356,7 @@ void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg) | |||
356 | 356 | ||
357 | switch (pr) { | 357 | switch (pr) { |
358 | case PH_DATA | REQUEST: | 358 | case PH_DATA | REQUEST: |
359 | if (bcs->b_out.tx_skb) | 359 | BUG_ON(bcs->b_out.tx_skb); |
360 | BUG(); | ||
361 | |||
362 | bcs->b_out.tx_skb = skb; | 360 | bcs->b_out.tx_skb = skb; |
363 | break; | 361 | break; |
364 | case PH_ACTIVATE | REQUEST: | 362 | case PH_ACTIVATE | REQUEST: |