Mesa (master): i965/drm: Remove dead return in brw_bo_busy()
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Apr 17 06:05:01 UTC 2017
Module: Mesa
Branch: master
Commit: 6142c3e2983d8723c31d04f6a9762f0ec916e48b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6142c3e2983d8723c31d04f6a9762f0ec916e48b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Apr 12 09:33:39 2017 -0700
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 <topi.pohjolainen at intel.com>
---
src/mesa/drivers/dri/i965/brw_bufmgr.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 8dda38d126..64f5449867 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
More information about the mesa-commit
mailing list