mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
ixgbe: need not repeat init skb with NULL
Signed-off-by: Martin Zhang <martinbj2008@gmail.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
bc16e47f03
commit
4d2fcfbcf8
@ -4321,8 +4321,8 @@ static void ixgbe_clean_rx_ring(struct ixgbe_ring *rx_ring)
|
||||
IXGBE_CB(skb)->page_released = false;
|
||||
}
|
||||
dev_kfree_skb(skb);
|
||||
rx_buffer->skb = NULL;
|
||||
}
|
||||
rx_buffer->skb = NULL;
|
||||
if (rx_buffer->dma)
|
||||
dma_unmap_page(dev, rx_buffer->dma,
|
||||
ixgbe_rx_pg_size(rx_ring),
|
||||
|
Loading…
Reference in New Issue
Block a user