summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-11-28 08:12:45 -0800
committerKenneth Graunke <[email protected]>2017-11-28 15:23:16 -0800
commit6b91610fc6082c449f67f1735f06db0e769c36b4 (patch)
treee7da11518cbad1540e0aa88a9dd41b8eee622395 /src
parent874d41add3ed75e569ff9a94ad7065a082671409 (diff)
i965: Change a ret == -1 check to ret != 0.
For consistency with most other ret checks. Suggested by Chris. Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index bd46035c37c..52b5bf97a16 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -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;