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:
parent
874d41add3
commit
6b91610fc6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue