i965: Change a ret == -1 check to ret != 0.

For consistency with most other ret checks.  Suggested by Chris.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Kenneth Graunke 2017-11-28 08:12:45 -08:00
parent 874d41add3
commit 6b91610fc6
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,7 @@ brw_bo_wait(struct brw_bo *bo, int64_t timeout_ns)
.timeout_ns = timeout_ns,
};
int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_WAIT, &wait);
if (ret == -1)
if (ret != 0)
return -errno;
bo->idle = true;