]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix error return code in ingenic_mac_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 15 Jun 2021 17:21:55 +0000 (17:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:02:38 +0000 (12:02 -0700)
commit8c3c9d175149de13a85fe4686704f2322423bee1
tree3319873240d909ac41951a8941bb83b273e1a333
parent252422969e9022124bd4af2e650b1c63e957364b
net: stmmac: Fix error return code in ingenic_mac_probe()

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

Fixes: 3c7d91cd5f9a ("net: stmmac: Add Ingenic SoCs MAC support.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c