Skip to content
Commit b4dc97ab authored by Yang Yingliang's avatar Yang Yingliang Committed by Vinod Koul
Browse files

phy: Sparx5 Eth SerDes: Fix return value check in sparx5_serdes_probe()



In case of error, the function devm_ioremap() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.

Fixes: 2ff8a1ee ("phy: Add Sparx5 ethernet serdes PHY driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210909072149.2934047-1-yangyingliang@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b475bf0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment