]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: stmmac: Remove uneeded check for GMAC version in stmmac_xmit
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 18 May 2018 13:56:06 +0000 (14:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:15 +0000 (11:00 -0400)
commitf1565c60210f049e068549bfc2a945331e0ee288
treefbeba0ac9b64013d0ae52f63bacb0bc814fbfd71
parent24aaed0cc0953fce632d539a148025f0e4a82bcf
net: stmmac: Remove uneeded check for GMAC version in stmmac_xmit

We either have .enable_dma_transmission or .set_tx_tail_ptr in the HW
table callbacks, we can never have both so there is no need to check for
GMAC version.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c