Re: [PATCH -next] drm/pl111: Fix return value check in pl111_amba_probe()

From: Eric Anholt
Date: Mon May 22 2017 - 18:11:54 EST


Wei Yongjun <weiyj.lk@xxxxxxxxx> writes:

> From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
>
> 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().
>
> Fixes: bed41005e617 ("drm/pl111: Initial drm/kms driver for pl111")
> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

Reviewed and applied. Thanks!

Attachment: signature.asc
Description: PGP signature