summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xen
diff options
context:
space:
mode:
authorDing Xiang <dingxiang@cmss.chinamobile.com>2020-03-30 12:59:07 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-03-31 18:14:51 +0300
commit4c1cb04e0e7ac4ba1ef5457929ef9b5671d9eed3 (patch)
tree5c1248615b6d970146ba78152ea6604cbafcd476 /drivers/gpu/drm/xen
parentb139f8b00db4a8ea75a4174346eafa48041aa489 (diff)
downloadlinux-4c1cb04e0e7ac4ba1ef5457929ef9b5671d9eed3.tar.xz
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
Diffstat (limited to 'drivers/gpu/drm/xen')
-rw-r--r--drivers/gpu/drm/xen/xen_drm_front.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xen/xen_drm_front.c b/drivers/gpu/drm/xen/xen_drm_front.c
index 4be49c1aef51..374142018171 100644
--- a/drivers/gpu/drm/xen/xen_drm_front.c
+++ b/drivers/gpu/drm/xen/xen_drm_front.c
@@ -401,7 +401,7 @@ static int xen_drm_drv_dumb_create(struct drm_file *filp,
obj = xen_drm_front_gem_create(dev, args->size);
if (IS_ERR_OR_NULL(obj)) {
- ret = PTR_ERR(obj);
+ ret = PTR_ERR_OR_ZERO(obj);
goto fail;
}