Commit 83700e20 authored by Zheng Bin's avatar Zheng Bin Committed by Alex Deucher

drm/amd/display: remove set but not used variable 'speakers' in dce_stream_encoder.c

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c:1339:11: warning: variable ‘speakers’ set but not used [-Wunused-but-set-variable]

It is introduced by commit 4562236b ("drm/amd/dc:
Add dc display driver (v2)"), but never used, so remove it.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 509c5818
...@@ -1336,7 +1336,6 @@ static void dce110_se_audio_setup( ...@@ -1336,7 +1336,6 @@ static void dce110_se_audio_setup(
{ {
struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc);
uint32_t speakers = 0;
uint32_t channels = 0; uint32_t channels = 0;
ASSERT(audio_info); ASSERT(audio_info);
...@@ -1344,7 +1343,6 @@ static void dce110_se_audio_setup( ...@@ -1344,7 +1343,6 @@ static void dce110_se_audio_setup(
/* This should not happen.it does so we don't get BSOD*/ /* This should not happen.it does so we don't get BSOD*/
return; return;
speakers = audio_info->flags.info.ALLSPEAKERS;
channels = speakers_to_channels(audio_info->flags.speaker_flags).all; channels = speakers_to_channels(audio_info->flags.speaker_flags).all;
/* setup the audio stream source select (audio -> dig mapping) */ /* setup the audio stream source select (audio -> dig mapping) */
......
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