]> asedeno.scripts.mit.edu Git - linux.git/commit
remoteproc: qcom: qcom_q6v5_adsp: Fix some return value check
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Oct 2018 03:59:39 +0000 (03:59 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 06:08:07 +0000 (23:08 -0700)
commit6e6b1ada0c6a745b0190016b1f50b699a625a944
tree07c57ecde75f3d7742ad0e24cc26685788f4a403
parentffa5f9c84810ea175226863f66a51bb2d4502f5b
remoteproc: qcom: qcom_q6v5_adsp: Fix some return value check

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

Also removed -EPROBE_DEFER check since devm_kcalloc never return
this error.

Fixes: dc160e449122 ("remoteproc: qcom: Introduce Non-PAS ADSP PIL driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_adsp.c