Commit 00796b92 authored by Edward Cree's avatar Edward Cree Committed by David S. Miller

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: default avatarEdward Cree <ecree@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 272bb0e9
...@@ -287,9 +287,8 @@ static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue, ...@@ -287,9 +287,8 @@ static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue,
return PTR_ERR(segments); return PTR_ERR(segments);
dev_consume_skb_any(skb); 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); skb_mark_not_on_list(skb);
efx_enqueue_skb(tx_queue, skb); efx_enqueue_skb(tx_queue, skb);
} }
......
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