Commit c104891c authored by Jose Abreu's avatar Jose Abreu Committed by David S. Miller
Browse files

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: default avatarJose Abreu <joabreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63384883
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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: