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

Eric Anholt eric at anholt.net
Mon May 22 22:11:42 UTC 2017


Wei Yongjun <weiyj.lk at gmail.com> writes:

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

Reviewed and applied.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170522/0d24c775/attachment.sig>


More information about the dri-devel mailing list