mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 22:30:20 +01:00
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:fb9f697fbb("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> (cherry picked from commit71466eb863)
This commit is contained in:
parent
062d7e95cc
commit
cfed3fb89b
2 changed files with 1 additions and 3 deletions
|
|
@ -10304,7 +10304,7 @@
|
|||
"description": "vk/wsi/x11: Remove dead code",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "fb9f697fbb8f836aaf12a269195841e36b93adf2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue