[PATCH libdrm] intel: remove dead code

Eric Engestrom eric at engestrom.ch
Sun Apr 9 21:48:46 UTC 2017


Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
 intel/intel_bufmgr_gem.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index e260f2dc..45a26da1 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -655,15 +655,14 @@ drm_intel_gem_bo_busy(drm_intel_bo *bo)
 	ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy);
 	if (ret == 0) {
 		bo_gem->idle = !busy.busy;
 		return busy.busy;
 	} else {
 		return false;
 	}
-	return (ret == 0 && busy.busy);
 }
 
 static int
 drm_intel_gem_bo_madvise_internal(drm_intel_bufmgr_gem *bufmgr_gem,
 				  drm_intel_bo_gem *bo_gem, int state)
 {
 	struct drm_i915_gem_madvise madv;
-- 
Cheers,
  Eric



More information about the dri-devel mailing list