net: ethernet: ti: cpsw: fix error return code in cpsw_set_channels()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 26 Aug 2016 14:35:43 +0000 (14:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2016 04:49:41 +0000 (21:49 -0700)
commite19ac1578fd8eb3f7c93f2be2657deb2ccefffd7
treebe2c94af1d9338b3fb7bb2c1bd6c947325571040
parent2a7a3c564466e9d58217200b36c026a52d99aaff
net: ethernet: ti: cpsw: fix error return code in cpsw_set_channels()

Fix to return a negative error code from the cpsw_fill_rx_channels()
error handling case instead of 0, as done elsewhere in this function.

Fixes: ce52c744574b ("net: ethernet: ti: cpsw: add ethtool channels support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c