ar71xx/ath79: ag71xx: dont fetch the same var again
[openwrt/openwrt.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_main.c
index ee703a48bfa1b50d046fac2f6db4c72b4a50cc3b..ebbe8a7472252e979facb971be4198b1e15c4779 100644 (file)
@@ -298,7 +298,7 @@ static int ag71xx_rings_init(struct ag71xx *ag)
                return -ENOMEM;
        }
 
-       rx->buf = &tx->buf[BIT(tx->order)];
+       rx->buf = &tx->buf[tx_size];
        rx->descs_cpu = ((void *)tx->descs_cpu) + tx_size * AG71XX_DESC_SIZE;
        rx->descs_dma = tx->descs_dma + tx_size * AG71XX_DESC_SIZE;