]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/igbvf/netdev.c
igb/igbvf: cleanup exception handling in tx_map_adv
[net-next-2.6.git] / drivers / net / igbvf / netdev.c
index 10e038adba0f5b245fc4ba77b63fac76168aa823..43c8375f11105c29036fb3e3786f63ce59b9d023 100644 (file)
@@ -2126,6 +2126,7 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,
        for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) {
                struct skb_frag_struct *frag;
 
+               count++;
                i++;
                if (i == tx_ring->count)
                        i = 0;
@@ -2146,7 +2147,6 @@ static inline int igbvf_tx_map_adv(struct igbvf_adapter *adapter,
                                                PCI_DMA_TODEVICE);
                if (pci_dma_mapping_error(pdev, buffer_info->dma))
                        goto dma_error;
-               count++;
        }
 
        tx_ring->buffer_info[i].skb = skb;