From: Jose Abreu Date: Fri, 10 Jan 2020 15:13:35 +0000 (+0100) Subject: net: stmmac: gmac5+: Fix missing return X-Git-Tag: v5.6-rc1~151^2~116^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e735def0186770d9a2904bee6ee82a4e6dd99578;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c b/drivers/net/ethernet/stmicro/stmmac/dwmac5.c index 5d4a3c2458eab..494c859b4ade8 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);