From eb92745b2e056bc4db36c3eba6a1fe59c943c478 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 18 May 2015 08:50:56 -0700 Subject: [PATCH] vk/gem: Just return -1 from anv_gem_wait() on error We were returning -errno, unlike all the other gem functions. --- src/vulkan/gem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index 5cc5e5d8e84..99cc0be71a8 100644 --- a/src/vulkan/gem.c +++ b/src/vulkan/gem.c @@ -155,8 +155,6 @@ anv_gem_wait(struct anv_device *device, int gem_handle, int64_t *timeout_ns) ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_WAIT, &wait); *timeout_ns = wait.timeout_ns; - if (ret == -1) - return -errno; return ret; } -- 2.30.2