diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tc35815.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index dccea525165e..b07b8cbadeaf 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -1736,7 +1736,6 @@ tc35815_rx(struct net_device *dev) | |||
1736 | skb = lp->rx_skbs[cur_bd].skb; | 1736 | skb = lp->rx_skbs[cur_bd].skb; |
1737 | prefetch(skb->data); | 1737 | prefetch(skb->data); |
1738 | lp->rx_skbs[cur_bd].skb = NULL; | 1738 | lp->rx_skbs[cur_bd].skb = NULL; |
1739 | lp->fbl_count--; | ||
1740 | pci_unmap_single(lp->pci_dev, | 1739 | pci_unmap_single(lp->pci_dev, |
1741 | lp->rx_skbs[cur_bd].skb_dma, | 1740 | lp->rx_skbs[cur_bd].skb_dma, |
1742 | RX_BUF_SIZE, PCI_DMA_FROMDEVICE); | 1741 | RX_BUF_SIZE, PCI_DMA_FROMDEVICE); |
@@ -1792,6 +1791,7 @@ tc35815_rx(struct net_device *dev) | |||
1792 | #ifdef TC35815_USE_PACKEDBUFFER | 1791 | #ifdef TC35815_USE_PACKEDBUFFER |
1793 | while (lp->fbl_curid != id) | 1792 | while (lp->fbl_curid != id) |
1794 | #else | 1793 | #else |
1794 | lp->fbl_count--; | ||
1795 | while (lp->fbl_count < RX_BUF_NUM) | 1795 | while (lp->fbl_count < RX_BUF_NUM) |
1796 | #endif | 1796 | #endif |
1797 | { | 1797 | { |