Skip to content

Commit 00796b9

Browse files
ecree-solarflaredavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 272bb0e commit 00796b9

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+1
-2
lines changed

drivers/net/ethernet/sfc/tx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,8 @@ static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue,
287287
return PTR_ERR(segments);
288288

289289
dev_consume_skb_any(skb);
290-
skb = segments;
291290

292-
skb_list_walk_safe(skb, skb, next) {
291+
skb_list_walk_safe(segments, skb, next) {
293292
skb_mark_not_on_list(skb);
294293
efx_enqueue_skb(tx_queue, skb);
295294
}

0 commit comments

Comments
 (0)