diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-08 11:05:11 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-27 10:31:06 +0200 |
commit | 42b42d2c9bd19b102663c1598b180dde4833320c (patch) | |
tree | 0cd1da8cd7bb8382ed72ea8aca33fe60d4e6f42b /target/linux/ar71xx | |
parent | 576791b9b4eab7f35e76bb77ec946d0a143510af (diff) | |
download | upstream-42b42d2c9bd19b102663c1598b180dde4833320c.tar.gz upstream-42b42d2c9bd19b102663c1598b180dde4833320c.tar.bz2 upstream-42b42d2c9bd19b102663c1598b180dde4833320c.zip |
ar71xx/ath79: ag71xx: get ring_mask consistent
All other instances of this identical declaration fetch the
value directly from the ring_order.
Also do it here.
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index e97317bd20..484f0ee71d 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -127,7 +127,7 @@ static void ag71xx_ring_tx_init(struct ag71xx *ag) { struct ag71xx_ring *ring = &ag->tx_ring; int ring_size = BIT(ring->order); - int ring_mask = ring_size - 1; + int ring_mask = BIT(ring->order) - 1; int i; for (i = 0; i < ring_size; i++) { |