From: Mario Limonciello (AMD) Date: Fri, 24 Oct 2025 15:05:31 +0000 (-0500) Subject: drm/amd/display: Drop needless check for link->link_id.id X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036dd0380b709ce8f40d8e87c289b3662eabbfff;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Drop needless check for link->link_id.id [WHY] The switch/case in `link_detect_sink_signal_type` already detects the link ID of `CONNECTOR_ID_HDMI_TYPE_A`. [How] Drop the extra match. Reviewed-by: Alex Hung Signed-off-by: Mario Limonciello (AMD) Signed-off-by: Alex Hung Tested-by: Dan Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c index 25132f7777365..778049b45c8fd 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c @@ -203,8 +203,7 @@ static enum signal_type link_detect_sink_signal_type(struct dc_link *link, aud_support = &link->dc->res_pool->audio_support; if (!aud_support->hdmi_audio_native) - if (link->link_id.id == CONNECTOR_ID_HDMI_TYPE_A) - result = SIGNAL_TYPE_DVI_SINGLE_LINK; + result = SIGNAL_TYPE_DVI_SINGLE_LINK; break; case CONNECTOR_ID_DISPLAY_PORT: case CONNECTOR_ID_USBC: