summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-07-18 22:06:03 -0500
committerRob Herring <robh@kernel.org>2016-12-13 09:43:50 -0600
commit2a8002bfd571d989158389e4c3b2275943be55ea (patch)
tree9bd63f371b1f7034ce81fdc9083405623ba357d7
parent2df53436cf8e412c76ed4e62b875a994df9b2943 (diff)
downloadgbm_gralloc-2a8002bfd571d989158389e4c3b2275943be55ea.tar.gz
gbm_gralloc-2a8002bfd571d989158389e4c3b2275943be55ea.tar.xz
Remove unused gralloc_drm_handle_t::name
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> [robh: keep the name member for now for ABI/API compatibility with mesa] Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--gralloc_gbm.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/gralloc_gbm.cpp b/gralloc_gbm.cpp
index f162bf4..a0bc34d 100644
--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -280,13 +280,9 @@ static struct gralloc_gbm_bo_t *validate_handle(buffer_handle_t _handle,
if (!gbm)
return NULL;
- ALOGE("handle: name=%d pfd=%d\n", handle->name,
- handle->prime_fd);
- /* create the struct gralloc_gbm_bo_t locally */
- if (handle->name || handle->prime_fd >= 0)
- bo = gbm_import(gbm, handle);
- else /* an invalid handle */
- bo = NULL;
+ ALOGE("handle: pfd=%d\n", handle->prime_fd);
+
+ bo = gbm_import(gbm, handle);
if (bo) {
bo->imported = 1;
bo->handle = handle;