Skip to content

Commit 37d4f55

Browse files
Dan Carpenterdavem330
authored andcommitted
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: 93a7653 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7aed44b commit 37d4f55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,7 @@ static int am65_cpsw_nuss_init_tx_chns(struct am65_cpsw_common *common)
17501750
if (tx_chn->irq <= 0) {
17511751
dev_err(dev, "Failed to get tx dma irq %d\n",
17521752
tx_chn->irq);
1753+
ret = tx_chn->irq ?: -ENXIO;
17531754
goto err;
17541755
}
17551756

0 commit comments

Comments
 (0)