]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:21:40 +0000 (16:21 +0300)
committerEric Anholt <eric@anholt.net>
Tue, 17 Nov 2015 20:26:49 +0000 (12:26 -0800)
commitba6cdd96c506f64633fc50fd8802ef1798293fe7
tree0fc4ac6a9b8b4f6e3a436f4bf8aced38a03cbd27
parent84192842dd72ceb33f1492db549769414fe8d07e
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: b5ab5d6e3cb4 ('Eric Anholt <eric@anholt.net>')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_crtc.c