]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: imx_rproc: fix return value check in imx_rproc_addr_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Oct 2017 10:48:44 +0000 (10:48 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Oct 2017 17:47:47 +0000 (10:47 -0700)
commit68a39a3e9fe1d6f0dfe59e3f4d6bc6765e01c903
tree7fb7aa098a2599935805aaed99aca9bfe7a2a5ad
parentab759b9732fd8a4ae0252bb2087e90d776f74b9f
remoteproc: imx_rproc: fix return value check in imx_rproc_addr_init()

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.

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c