[STLinux Kernel] [PATCH -next] dmaengine: st_fdma: Fix the error return code in st_fdma_probe()

Peter Griffin peter.griffin at linaro.org
Wed Oct 19 08:59:59 PDT 2016


Hi Wei,

On Wed, 19 Oct 2016, Wei Yongjun wrote:

> From: Wei Yongjun <weiyongjun1 at huawei.com>
> 
> 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 at huawei.com>
> ---

Good spot.

Acked-by: Peter Griffin <peter.griffin at linaro.org>




More information about the linux-arm-kernel mailing list