diff options
author | Koki Sanagi <sanagi.koki@jp.fujitsu.com> | 2010-04-26 21:01:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-27 15:53:26 -0400 |
commit | aa913403fe76d463eff55ee9aa20605bfc7051a4 (patch) | |
tree | 39d7f3aa2e64e8e174429256727be5c05e70b201 /drivers/net/igb | |
parent | 0b53ff2eadb1db6818894435f85989fb05d7e718 (diff) |
igb: 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/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index c19b1e0caecd..a14303a0ad7b 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -5248,7 +5248,7 @@ static bool igb_clean_rx_irq_adv(struct igb_q_vector *q_vector, | |||
5248 | PAGE_SIZE / 2, PCI_DMA_FROMDEVICE); | 5248 | PAGE_SIZE / 2, PCI_DMA_FROMDEVICE); |
5249 | buffer_info->page_dma = 0; | 5249 | buffer_info->page_dma = 0; |
5250 | 5250 | ||
5251 | skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags++, | 5251 | skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags, |
5252 | buffer_info->page, | 5252 | buffer_info->page, |
5253 | buffer_info->page_offset, | 5253 | buffer_info->page_offset, |
5254 | length); | 5254 | length); |