summaryrefslogtreecommitdiff
path: root/drivers/net/igbvf
diff options
context:
space:
mode:
authorKoki Sanagi <sanagi.koki@jp.fujitsu.com>2010-04-27 05:01:39 +0400
committerDavid S. Miller <davem@davemloft.net>2010-04-27 23:53:27 +0400
commitec857fd40da41d7c50d9a97e07e364c93b8b8e05 (patch)
treef6373ad1e31f82dec3e8e4da32f69ff36cafdf6d /drivers/net/igbvf
parentaa913403fe76d463eff55ee9aa20605bfc7051a4 (diff)
downloadlinux-ec857fd40da41d7c50d9a97e07e364c93b8b8e05.tar.xz
igbvf: double increment nr_frags
There is no need to increment nr_frags because skb_fill_page_desc increments it. Signed-off-by: Koki Sanagi <sanagi.koki@jp.fujitsu.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igbvf')
-rw-r--r--drivers/net/igbvf/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c
index cc2309027e6a..9ac3f9428195 100644
--- a/drivers/net/igbvf/netdev.c
+++ b/drivers/net/igbvf/netdev.c
@@ -289,7 +289,7 @@ static bool igbvf_clean_rx_irq(struct igbvf_adapter *adapter,
PCI_DMA_FROMDEVICE);
buffer_info->page_dma = 0;
- skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags++,
+ skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags,
buffer_info->page,
buffer_info->page_offset,
length);