Commit 5e69732d authored by Dong Chenchen's avatar Dong Chenchen Committed by Alex Deucher

drm/amd/display: Removed unused variable 'sdp_stream_enable'

Kernel test robot throws below warning ->

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:
In function 'dcn31_hpo_dp_stream_enc_update_dp_info_packets':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:14:
warning: variable 'sdp_stream_enable' set but not used
[-Wunused-but-set-variable]
   439 |         bool sdp_stream_enable = false;

Removed unused variable 'sdp_stream_enable'.
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDong Chenchen <dongchenchen2@huawei.com>
Signed-off-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7d30ccc7
...@@ -436,32 +436,28 @@ static void dcn31_hpo_dp_stream_enc_update_dp_info_packets( ...@@ -436,32 +436,28 @@ static void dcn31_hpo_dp_stream_enc_update_dp_info_packets(
{ {
struct dcn31_hpo_dp_stream_encoder *enc3 = DCN3_1_HPO_DP_STREAM_ENC_FROM_HPO_STREAM_ENC(enc); struct dcn31_hpo_dp_stream_encoder *enc3 = DCN3_1_HPO_DP_STREAM_ENC_FROM_HPO_STREAM_ENC(enc);
uint32_t dmdata_packet_enabled = 0; uint32_t dmdata_packet_enabled = 0;
bool sdp_stream_enable = false;
if (info_frame->vsc.valid) { if (info_frame->vsc.valid)
enc->vpg->funcs->update_generic_info_packet( enc->vpg->funcs->update_generic_info_packet(
enc->vpg, enc->vpg,
0, /* packetIndex */ 0, /* packetIndex */
&info_frame->vsc, &info_frame->vsc,
true); true);
sdp_stream_enable = true;
} if (info_frame->spd.valid)
if (info_frame->spd.valid) {
enc->vpg->funcs->update_generic_info_packet( enc->vpg->funcs->update_generic_info_packet(
enc->vpg, enc->vpg,
2, /* packetIndex */ 2, /* packetIndex */
&info_frame->spd, &info_frame->spd,
true); true);
sdp_stream_enable = true;
} if (info_frame->hdrsmd.valid)
if (info_frame->hdrsmd.valid) {
enc->vpg->funcs->update_generic_info_packet( enc->vpg->funcs->update_generic_info_packet(
enc->vpg, enc->vpg,
3, /* packetIndex */ 3, /* packetIndex */
&info_frame->hdrsmd, &info_frame->hdrsmd,
true); true);
sdp_stream_enable = true;
}
/* enable/disable transmission of packet(s). /* enable/disable transmission of packet(s).
* If enabled, packet transmission begins on the next frame * If enabled, packet transmission begins on the next frame
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment