Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

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

Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dan Carpenter and committed by
David S. Miller
37d4f555 7aed44ba

+1
+1
drivers/net/ethernet/ti/am65-cpsw-nuss.c
··· 1750 1750 if (tx_chn->irq <= 0) { 1751 1751 dev_err(dev, "Failed to get tx dma irq %d\n", 1752 1752 tx_chn->irq); 1753 + ret = tx_chn->irq ?: -ENXIO; 1753 1754 goto err; 1754 1755 } 1755 1756