From 67c16b59b20524b870a170f64a99fecab03fc6e7 Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Mon, 22 Jul 2024 14:39:25 +0000 Subject: [PATCH] tu/kgsl: Remove unused variable The offset variable declaration at the beginning of the function was left over after the variable was moved inside the if statement. Fixes: 17c12a9924a ("turnip/kgsl: Support external memory via ION/DMABUF buffers") Signed-off-by: Valentine Burley Part-of: (cherry picked from commit 0a6cbb3a9730bd13da87c3bca22a74f182e21231) --- .pick_status.json | 2 +- src/freedreno/vulkan/tu_knl_kgsl.cc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index f2fff29e2ce..dc0d9cf1f50 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -844,7 +844,7 @@ "description": "tu/kgsl: Remove unused variable", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "17c12a9924a0c6f0f52a66c92fe1bbd8886fc9b1", "notes": null diff --git a/src/freedreno/vulkan/tu_knl_kgsl.cc b/src/freedreno/vulkan/tu_knl_kgsl.cc index 3f2ad94f553..bad73e4652f 100644 --- a/src/freedreno/vulkan/tu_knl_kgsl.cc +++ b/src/freedreno/vulkan/tu_knl_kgsl.cc @@ -333,8 +333,6 @@ kgsl_bo_export_dmabuf(struct tu_device *dev, struct tu_bo *bo) static VkResult kgsl_bo_map(struct tu_device *dev, struct tu_bo *bo, void *placed_addr) { - uint64_t offset = bo->gem_handle << 12; - void *map = MAP_FAILED; if (bo->shared_fd == -1) { uint64_t offset = bo->gem_handle << 12;