net: stmmac: Fix issues when number of Queues >= 4
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 6 Aug 2019 13:16:17 +0000 (15:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 19:26:11 +0000 (12:26 -0700)
commite8df7e8c233a18d2704e37ecff47583b494789d3
treee623ad933f709489efdcc5a6c6d740849acf6824
parent0efedbf11f07adee555e0c4ba9c6eb58760aa94f
net: stmmac: Fix issues when number of Queues >= 4

When queues >= 4 we use different registers but we were not subtracting
the offset of 4. Fix this.

Found out by Coverity.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c