mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
vulkan/wsi: Remove duplicate NULL check
Fix defect reported by Coverity Scan.
Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: return NULL;.
Fixes: eadc64ab24 ("vulkan/wsi/display: do not dereference a NULL pointer")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23415>
This commit is contained in:
parent
46764815ac
commit
a62a22c922
1 changed files with 0 additions and 3 deletions
|
|
@ -303,9 +303,6 @@ wsi_display_alloc_connector(struct wsi_display *wsi,
|
|||
if (!connector)
|
||||
return NULL;
|
||||
|
||||
if (!connector)
|
||||
return NULL;
|
||||
|
||||
connector->id = connector_id;
|
||||
connector->wsi = wsi;
|
||||
connector->active = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue