remoteproc: qcom: wcnss: Fix return value check in wcnss_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 21 Aug 2016 14:39:30 +0000 (14:39 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 23 Aug 2016 04:36:43 +0000 (21:36 -0700)
commitf4e1f9bb3498c0a9a3b92815f2ea64650eac1715
tree833502ccca479bfc263414390e266df61f083ae4
parentaed361adca9ff1d828843f3afc5d9140a2fa410d
remoteproc: qcom: wcnss: Fix return value check in wcnss_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().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_wcnss.c