Commit 4d2fcfbc authored by Junwei Zhang's avatar Junwei Zhang Committed by Jeff Kirsher

ixgbe: need not repeat init skb with NULL

Signed-off-by: default avatarMartin Zhang <martinbj2008@gmail.com>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent bc16e47f
...@@ -4321,8 +4321,8 @@ static void ixgbe_clean_rx_ring(struct ixgbe_ring *rx_ring) ...@@ -4321,8 +4321,8 @@ static void ixgbe_clean_rx_ring(struct ixgbe_ring *rx_ring)
IXGBE_CB(skb)->page_released = false; IXGBE_CB(skb)->page_released = false;
} }
dev_kfree_skb(skb); dev_kfree_skb(skb);
rx_buffer->skb = NULL;
} }
rx_buffer->skb = NULL;
if (rx_buffer->dma) if (rx_buffer->dma)
dma_unmap_page(dev, rx_buffer->dma, dma_unmap_page(dev, rx_buffer->dma,
ixgbe_rx_pg_size(rx_ring), ixgbe_rx_pg_size(rx_ring),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment