From: Rodrigo Siqueira Date: Mon, 4 Mar 2024 17:36:11 +0000 (-0700) Subject: drm/amd/display: Remove code duplication X-Git-Tag: v6.10-rc1~148^2~21^2~247 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55fdfddddbbc6365a33757bb009be5f64902c019;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Remove code duplication [Why & How] Remove redundant code Acked-by: Wayne Lin Signed-off-by: Rodrigo Siqueira Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c index 738ee763f24a5..bb9f39bf5b5b7 100644 --- a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c +++ b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c @@ -539,8 +539,6 @@ void mod_build_adaptive_sync_infopacket(const struct dc_stream_state *stream, mod_build_adaptive_sync_infopacket_v2(stream, param, info_packet); break; case FREESYNC_TYPE_PCON_IN_WHITELIST: - mod_build_adaptive_sync_infopacket_v1(info_packet); - break; case ADAPTIVE_SYNC_TYPE_EDP: mod_build_adaptive_sync_infopacket_v1(info_packet); break;