Skip to content
Commit 21d3515c authored by Ben Shelton's avatar Ben Shelton Committed by David S. Miller
Browse files

net/macb: Factor out one-time assignment from loop



In 02c958dd (net/macb: add TX multiqueue support for gem), the
initialization of tx_head and tx_tail in macb_init_rings() was moved
inside the loop that iterates over each element in the ring.  Since
tx_head and tx_tail only need to be assigned once, move them back out of
the loop.

Signed-off-by: default avatarBen Shelton <ben.shelton@ni.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79930f58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment