]> git.baikalelectronics.ru Git - kernel.git/commit
net: ag71xx: Slighly simplify code in 'ag71xx_rings_init()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 31 Jul 2019 08:06:38 +0000 (10:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 15:38:17 +0000 (08:38 -0700)
commit26998c61defa5071944b89cc04a684af62c8be2c
treeb78940745c2dff3c66ecfe5059045b5dd446bb95
parentc3583a6eff7af24d604273f4b138863dde0e2e92
net: ag71xx: Slighly simplify code in 'ag71xx_rings_init()'

A few lines above, we have:
   tx_size = BIT(tx->order);

So use 'tx_size' directly to be consistent with the way 'rx->descs_cpu' and
'rx->descs_dma' are computed below.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/ag71xx.c