Skip to content

Commit

Permalink
net: stmmac: xgmac: Fix missing return
Browse files Browse the repository at this point in the history
If FPE is supposed to be disabled we need to return after disabling it.

Fixes: f0e56c8 ("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>
  • Loading branch information
Jose Abreu authored and David S. Miller committed Jan 10, 2020
1 parent 7112f8b commit 8eea7c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 8eea7c7

Please sign in to comment.