diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-09-04 16:16:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 13:19:54 +0300 |
commit | c104891c4b1f559d4e6a469a5d5f4c509a862676 (patch) | |
tree | c7638d7b1d4013f6788fec8fe46e26703a6fbbf9 /drivers | |
parent | 6338488356d2891869c9e143381f3bb71cfa2e30 (diff) | |
download | linux-c104891c4b1f559d4e6a469a5d5f4c509a862676.tar.xz |
net: stmmac: Do not return error code in TC Initialization
As we can still use the remaining TC callbacks, e.g. CBS. We should not
fail in the initialization only because RX Parser is not available.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index 6c305b6ecad0..8dbbbf181ada 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -243,8 +243,9 @@ static int tc_init(struct stmmac_priv *priv) struct dma_features *dma_cap = &priv->dma_cap; unsigned int count; + /* Fail silently as we can still use remaining features, e.g. CBS */ if (!dma_cap->frpsel) - return -EINVAL; + return 0; switch (dma_cap->frpbs) { case 0x0: |