From: Kristian Høgsberg Date: Mon, 18 May 2015 15:50:56 +0000 (-0700) Subject: vk/gem: Just return -1 from anv_gem_wait() on error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb92745b2e056bc4db36c3eba6a1fe59c943c478;p=mesa.git vk/gem: Just return -1 from anv_gem_wait() on error We were returning -errno, unlike all the other gem functions. --- 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; }