]> git.baikalelectronics.ru Git - kernel.git/commit
drm/xen-front: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 May 2018 09:26:50 +0000 (12:26 +0300)
committerOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Tue, 8 May 2018 11:09:40 +0000 (14:09 +0300)
commit47ce7b6c26219207775aac6cbfcdb16ae7f41d22
treeaad97bd186c6938581e56d01e323b9649ebfc8eb
parentae7b27233e02ad7e0d76252ff618fe2e3eb26136
drm/xen-front: checking for NULL instead of IS_ERR

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

Fixes: 9e0ba523c568 ("drm/xen-front: Add support for Xen PV display frontend")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180508092650.GA661@mwanda
drivers/gpu/drm/xen/xen_drm_front.c