]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: fix error return code in cpsw_probe()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Fri, 13 Nov 2020 06:49:33 +0000 (14:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Nov 2020 23:37:28 +0000 (15:37 -0800)
commit04570675f92a4fc155691eadbba429ad8b898e4b
tree57cd71b1a211247730f96449d8fa0725a5c59e06
parent5952daf1250b338993fdb924d2dc848c8e173715
net: ethernet: ti: cpsw: fix error return code in cpsw_probe()

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

Fixes: 8a7c9d2b28fa ("net: ethernet: ti: cpsw: refactor probe to group common hw initialization")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1605250173-18438-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/cpsw.c