Skip to content
Commit 753dfd23 authored by Wei Yongjun's avatar Wei Yongjun Committed by Peter Chen
Browse files

usb: chipidea: msm: Fix return value check in ci_hdrc_msm_probe()



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

Fixes: 2fc305be ("usb: chipidea: msm: Mux over secondary phy at the
right time")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent 490b63e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment