Skip to content
Snippets Groups Projects
Commit 032b969e authored by Dan Carpenter's avatar Dan Carpenter Committed by Frieder Schrempf
Browse files

net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()


[ Upstream commit 37d4f555 ]

This accidentally returns success, but it should return a negative error
code.

Fixes: 93a76530 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarRoger Quadros <rogerq@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c379e21d
No related branches found
No related tags found
1 merge request!102🤖 Sync Bot: Update v5.10-ktn to Latest Stable Kernel (v5.10.198)
...@@ -1496,6 +1496,7 @@ static int am65_cpsw_nuss_init_tx_chns(struct am65_cpsw_common *common) ...@@ -1496,6 +1496,7 @@ static int am65_cpsw_nuss_init_tx_chns(struct am65_cpsw_common *common)
if (tx_chn->irq <= 0) { if (tx_chn->irq <= 0) {
dev_err(dev, "Failed to get tx dma irq %d\n", dev_err(dev, "Failed to get tx dma irq %d\n",
tx_chn->irq); tx_chn->irq);
ret = tx_chn->irq ?: -ENXIO;
goto err; goto err;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment