summaryrefslogtreecommitdiff
path: root/src/vulkan
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2023-08-20 17:53:09 -0700
committerMarge Bot <emma+marge@anholt.net>2023-08-26 20:12:18 +0000
commit71466eb863e9433461edd2b04e6cb69f0457f573 (patch)
tree4533a76028eaef9aa97caa884c9040c5527835e2 /src/vulkan
parentf816578e4e251802d057d0edca016629edd5a2ac (diff)
downloadmesa-71466eb863e9433461edd2b04e6cb69f0457f573.tar.gz
mesa-71466eb863e9433461edd2b04e6cb69f0457f573.tar.bz2
mesa-71466eb863e9433461edd2b04e6cb69f0457f573.zip
vk/wsi/x11: Remove dead code
Fix defect reported by Coverity Scan. Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: return VK_ERROR_SURFACE_LOS.... Fixes: fb9f697fbb8 ("vk/wsi/x11: move surface alpha check from get_caps to creation") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24802>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common_x11.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index 0f9dad6a0e4..6dd22b5804b 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -705,8 +705,6 @@ x11_surface_get_capabilities(VkIcdSurfaceBase *icd_surface,
}
free(err);
free(geom);
- if (!geom)
- return VK_ERROR_SURFACE_LOST_KHR;
if (surface->has_alpha) {
caps->supportedCompositeAlpha = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR |