net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 26 Sep 2023 14:04:43 +0000 (17:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Oct 2023 09:29:55 +0000 (10:29 +0100)
commit37d4f55567982e445f86dc0ff4ecfa72921abfe8
tree7b8f06018aa978d53e8b559e1bf34ebd5e90b4c5
parent7aed44babc7f97e82b38e9a68515e699692cc100
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>
drivers/net/ethernet/ti/am65-cpsw-nuss.c