net: stmmac: gmac5+: Fix missing return
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 10 Jan 2020 15:13:35 +0000 (16:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 19:29:44 +0000 (11:29 -0800)
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>
drivers/net/ethernet/stmicro/stmmac/dwmac5.c

index 5d4a3c2..494c859 100644 (file)
@@ -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);