]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: stmmac: xgmac: Fix missing return
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 10 Jan 2020 15:13:34 +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: f0e56c8d8f7d ("net: stmmac: xgmac3+: 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/dwxgmac2_core.c

index 307105e8dea035a078ed8432d29244f5aa3e807c..2af3ac5409b7219167bc07fa318decb268c471b3 100644 (file)
@@ -1421,6 +1421,7 @@ static void dwxgmac3_fpe_configure(void __iomem *ioaddr, u32 num_txq,
                value &= ~XGMAC_EFPE;
 
                writel(value, ioaddr + XGMAC_FPE_CTRL_STS);
+               return;
        }
 
        value = readl(ioaddr + XGMAC_RXQ_CTRL1);