interconnect: imx: Fix return value check in imx_icc_node_init_qos()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 10 May 2020 15:30:37 +0000 (18:30 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Sun, 10 May 2020 15:30:37 +0000 (18:30 +0300)
commit360a10285e7e2722f6869f5dc8e81214a72b57f6
tree41c05cf44cbd4d4854395904e084bb4aedd5f987
parent4b54bf4763e3725dcceaac379df4ef78df3b9fcd
interconnect: imx: Fix return value check in imx_icc_node_init_qos()

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

Fixes: f0d8048525d7 ("interconnect: Add imx core driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20200509030214.14435-1-weiyongjun1@huawei.com
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/imx/imx.c