summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-04-12 09:33:39 -0700
committerKenneth Graunke <[email protected]>2017-04-16 22:58:22 -0700
commit6142c3e2983d8723c31d04f6a9762f0ec916e48b (patch)
treef0e5c15fa0d54fec4568a4bfe83bc219655c808e /src/mesa/drivers/dri
parent8c79dbe94eb7234ca97f28119cbcf9e5bc0c3a78 (diff)
i965/drm: Remove dead return in brw_bo_busy()
If ret is 0, we return. If ret is not 0, we return. This is dead. CID: 1405013 (Structurally dead code (UNREACHABLE)) Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_bufmgr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 8dda38d1262..64f54498672 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -207,10 +207,8 @@ brw_bo_busy(struct brw_bo *bo)
if (ret == 0) {
bo->idle = !busy.busy;
return busy.busy;
- } else {
- return false;
}
- return (ret == 0 && busy.busy);
+ return false;
}
int