intel: Silence a trivial compiler warning
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Oct 2012 09:08:46 +0000 (10:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Oct 2012 09:09:38 +0000 (10:09 +0100)
intel_bufmgr_gem.c: In function 'drm_intel_bo_gem_export_to_prime':
intel_bufmgr_gem.c:2477:6: warning: unused variable 'ret' [-Wunused-variable]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index 3f7424c9fd7d51fc155de8caebab5921a522a9b0..8d45839d61b5ae46e9b00ec16492db7e40a69513 100644 (file)
@@ -2472,7 +2472,6 @@ drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd)
 {
        drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr;
        drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
-       int ret;
 
        if (drmPrimeHandleToFD(bufmgr_gem->fd, bo_gem->gem_handle,
                               DRM_CLOEXEC, prime_fd) != 0)