From a62a22c92225b02537e6cd73abedfa5466f58ee5 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 3 Jun 2023 16:06:55 -0700 Subject: [PATCH] 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: eadc64ab248 ("vulkan/wsi/display: do not dereference a NULL pointer") Signed-off-by: Vinson Lee Reviewed-by: Eric Engestrom Reviewed-by: Faith Ekstrand Part-of: --- src/vulkan/wsi/wsi_common_display.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index c8b63ad8bfe..650a78b2f37 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -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;