diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2020-01-10 16:13:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-10 11:29:44 -0800 |
commit | e735def0186770d9a2904bee6ee82a4e6dd99578 (patch) | |
tree | a2973e5cdcf933d7e07212db76266d359bf5131f /drivers/net/ethernet/stmicro | |
parent | 8eea7c7f3f2fcc8d580df331890090a023ef3f6b (diff) | |
download | linux-e735def0186770d9a2904bee6ee82a4e6dd99578.tar.bz2 |
net: stmmac: gmac5+: Fix missing return
If FPE is supposed to be disabled we need to return after disabling it.
Fixes: 7c7282746883 ("net: stmmac: gmac5+: Add support for Frame Preemption")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c b/drivers/net/ethernet/stmicro/stmmac/dwmac5.c index 5d4a3c2458ea..494c859b4ade 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac5.c @@ -657,6 +657,7 @@ void dwmac5_fpe_configure(void __iomem *ioaddr, u32 num_txq, u32 num_rxq, value &= ~EFPE; writel(value, ioaddr + MAC_FPE_CTRL_STS); + return; } value = readl(ioaddr + GMAC_RXQ_CTRL1); |