drm/vc4: checking for NULL instead of IS_ERR
authorDan Carpenter <[email protected]>
Wed, 4 Nov 2015 13:21:40 +0000 (16:21 +0300)
committerEric Anholt <[email protected]>
Tue, 17 Nov 2015 20:26:49 +0000 (12:26 -0800)
commit79513237da7ecc0981e7d962a784625b32cabfdc
tree0fc4ac6a9b8b4f6e3a436f4bf8aced38a03cbd27
parent2fa8e90433cdc2d9f09883f45fd2942dc042d6a6
drm/vc4: checking for NULL instead of IS_ERR

vc4_plane_init() returns an ERR_PTR on error, it doesn't return NULL.
This was obviously intended because the next lines call
PTR_ERR(primary_plane) already.

Fixes: c8b75bca92cb ('Eric Anholt <[email protected]>')
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
drivers/gpu/drm/vc4/vc4_crtc.c