diff options
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) | |||
476 | unsigned char cmd; | 476 | unsigned char cmd; |
477 | u_char *ptr; | 477 | u_char *ptr; |
478 | 478 | ||
479 | if (!isac->tx_skb) | 479 | BUG_ON(!isac->tx_skb); |
480 | BUG(); | ||
481 | 480 | ||
482 | count = isac->tx_skb->len; | 481 | count = isac->tx_skb->len; |
483 | if (count <= 0) | 482 | BUG_ON(count <= 0); |
484 | BUG(); | ||
485 | 483 | ||
486 | DBG(DBG_IRQ, "count %d", count); | 484 | DBG(DBG_IRQ, "count %d", count); |
487 | 485 | ||
@@ -859,8 +857,7 @@ void isac_d_l2l1(struct hisax_if *hisax_d_if, int pr, void *arg) | |||
859 | dev_kfree_skb(skb); | 857 | dev_kfree_skb(skb); |
860 | break; | 858 | break; |
861 | } | 859 | } |
862 | if (isac->tx_skb) | 860 | BUG_ON(isac->tx_skb); |
863 | BUG(); | ||
864 | 861 | ||
865 | isac->tx_skb = skb; | 862 | isac->tx_skb = skb; |
866 | isac_fill_fifo(isac); | 863 | isac_fill_fifo(isac); |