]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commite30ca4bcf0d9ad2c6f5716d6098b935f0d584c76
treeaad97bd186c6938581e56d01e323b9649ebfc8eb
parent28eff78618c67277ffe3a6eb4557ad918fd09fe5
drm/xen-front: checking for NULL instead of IS_ERR

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

Fixes: c575b7eeb89f ("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