]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: st_fdma: Fix the error return code in st_fdma_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 19 Oct 2016 13:23:50 +0000 (13:23 +0000)
committerVinod Koul <vinod.koul@intel.com>
Wed, 19 Oct 2016 16:59:33 +0000 (22:29 +0530)
commit66a67f5103a671935a2239bd963b0ed52d750f29
treec05c7f4d06f2c197e9e15b66fca3cba382791005
parente71d29c30b61b2d59f769ab6dc0c1e8197ffebbf
dmaengine: st_fdma: Fix the error return code in st_fdma_probe()

In case of error, the function st_slim_rproc_alloc() 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>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/st_fdma.c