diff mbox

[libdrm] intel: remove dead code

Message ID 20170409214846.9080-1-eric@engestrom.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom April 9, 2017, 9:48 p.m. UTC
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
---
 intel/intel_bufmgr_gem.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

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;