aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 964c09644832..46f55fb9a053 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -2966,9 +2966,7 @@ static void tg3_tx(struct tg3 *tp)
2966 struct sk_buff *skb = ri->skb; 2966 struct sk_buff *skb = ri->skb;
2967 int i; 2967 int i;
2968 2968
2969 if (unlikely(skb == NULL)) 2969 BUG_ON(skb == NULL);
2970 BUG();
2971
2972 pci_unmap_single(tp->pdev, 2970 pci_unmap_single(tp->pdev,
2973 pci_unmap_addr(ri, mapping), 2971 pci_unmap_addr(ri, mapping),
2974 skb_headlen(skb), 2972 skb_headlen(skb),
@@ -2979,12 +2977,10 @@ static void tg3_tx(struct tg3 *tp)
2979 sw_idx = NEXT_TX(sw_idx); 2977 sw_idx = NEXT_TX(sw_idx);
2980 2978
2981 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { 2979 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
2982 if (unlikely(sw_idx == hw_idx)) 2980 BUG_ON(sw_idx == hw_idx);
2983 BUG();
2984 2981
2985 ri = &tp->tx_buffers[sw_idx]; 2982 ri = &tp->tx_buffers[sw_idx];
2986 if (unlikely(ri->skb != NULL)) 2983 BUG_ON(ri->skb != NULL);
2987 BUG();
2988 2984
2989 pci_unmap_page(tp->pdev, 2985 pci_unmap_page(tp->pdev,
2990 pci_unmap_addr(ri, mapping), 2986 pci_unmap_addr(ri, mapping),
@@ -4935,9 +4931,8 @@ static int tg3_halt_cpu(struct tg3 *tp, u32 offset)
4935{ 4931{
4936 int i; 4932 int i;
4937 4933
4938 if (offset == TX_CPU_BASE && 4934 BUG_ON(offset == TX_CPU_BASE &&
4939 (tp->tg3_flags2 & TG3_FLG2_5705_PLUS)) 4935 (tp->tg3_flags2 & TG3_FLG2_5705_PLUS));
4940 BUG();
4941 4936
4942 if (offset == RX_CPU_BASE) { 4937 if (offset == RX_CPU_BASE) {
4943 for (i = 0; i < 10000; i++) { 4938 for (i = 0; i < 10000; i++) {