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:
Vinson Lee
2023-06-03 16:06:55 -07:00
committed by Marge Bot
parent 46764815ac
commit a62a22c922

View File

@@ -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;