]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: Factor out one-time assignment from loop
authorBen Shelton <ben.shelton@ni.com>
Wed, 22 Apr 2015 22:28:54 +0000 (17:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2015 22:34:56 +0000 (18:34 -0400)
commitdb27197d0efb59fe02fff80841c58c85169bbd89
treecce5d80276b3531c75de366fb13274d71a3a00f6
parent05ba6aa6ffed0a820ba084050c5d013b9842f1c8
net/macb: Factor out one-time assignment from loop

In c326318fc (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: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c