drm: zte: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Nov 2016 09:53:01 +0000 (12:53 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Nov 2016 10:00:42 +0000 (11:00 +0100)
commit72282a88d4ea2c0f3e520fab34db56af7119f6e7
treeafdef465b57778cd26449614e8767dba371a9007
parent35cf03508d8466ecc5199c9d609e74e85bec785b
drm: zte: checking for NULL instead of IS_ERR()

drm_dev_alloc() never returns NULL, it only returns error pointers on
error.

Fixes: 0a886f59528a ("drm: zte: add initial vou drm driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161115095301.GC15424@mwanda
drivers/gpu/drm/zte/zx_drm_drv.c