mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
sfc: elide assignment of skb
Instead of assigning skb = segments before the loop, just pass segments directly as the first argument to skb_list_walk_safe(). Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
272bb0e9e8
commit
00796b929c
1 changed files with 1 additions and 2 deletions
|
@ -287,9 +287,8 @@ static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue,
|
|||
return PTR_ERR(segments);
|
||||
|
||||
dev_consume_skb_any(skb);
|
||||
skb = segments;
|
||||
|
||||
skb_list_walk_safe(skb, skb, next) {
|
||||
skb_list_walk_safe(segments, skb, next) {
|
||||
skb_mark_not_on_list(skb);
|
||||
efx_enqueue_skb(tx_queue, skb);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue