Searched hist:"9 f1e3378" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/adi/ |
H A D | adin1110.c | 9f1e3378 Wed Sep 21 21:10:23 CDT 2022 Wei Yongjun <weiyongjun1@huawei.com> 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>
|