]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1af8be08d0fc9f1a2467066f08db927dd62afcfb
tree5c1248615b6d970146ba78152ea6604cbafcd476
parentdebe878d30f6eb53524919b55fbc6343f0acf2db
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