summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/vertexcom
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2022-09-22 05:10:23 +0300
committerJakub Kicinski <kuba@kernel.org>2022-09-26 22:44:40 +0300
commit9f1e337851bed60fef8fbea2726a8cd976120c26 (patch)
tree3925f591e83cba68a309bb3913de2913443df25a /drivers/net/ethernet/vertexcom
parent01bcfc1a166f596e61c1f99f9ef294803eec77f4 (diff)
downloadlinux-9f1e337851bed60fef8fbea2726a8cd976120c26.tar.xz
net: ethernet: adi: Fix return value check in adin1110_probe_netdevs()
In case of error, the function get_phy_device() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: bc93e19d088b ("net: ethernet: adi: Add ADIN1110 support") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20220922021023.811581-1-weiyongjun@huaweicloud.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/vertexcom')
0 files changed, 0 insertions, 0 deletions