drm/xen: fix passing zero to 'PTR_ERR' warning
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Mon, 30 Mar 2020 09:59:07 +0000 (17:59 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 31 Mar 2020 15:14:51 +0000 (17:14 +0200)
commit4c1cb04e0e7ac4ba1ef5457929ef9b5671d9eed3
tree5c1248615b6d970146ba78152ea6604cbafcd476
parentb139f8b00db4a8ea75a4174346eafa48041aa489
drm/xen: fix passing zero to 'PTR_ERR' warning

Fix a static code checker warning:
    drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create()
    warn: passing zero to 'PTR_ERR'

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1585562347-30214-1-git-send-email-dingxiang@cmss.chinamobile.com
drivers/gpu/drm/xen/xen_drm_front.c