Skip to contentSkip to conversation

ASoC: Intel: bytcr_wm5102: remove useless variable

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 9, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: bytcr_wm5102: remove useless variable

Fix the following gcc warning:

sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning:
‘byt_wm5102_dai_params’ defined but not used.

---
 sound/soc/intel/boards/bytcr_wm5102.c | 8 --------
 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_wm5102.c +0 -8
index f38850e..fd584e3 100644
@@ -213,14 +213,6 @@ static int byt_wm5102_init(struct snd_soc_pcm_runtime *runtime)
 	return 0;
 }
 
-static const struct snd_soc_pcm_stream byt_wm5102_dai_params = {
-	.formats = SNDRV_PCM_FMTBIT_S16_LE,
-	.rate_min = 48000,
-	.rate_max = 48000,
-	.channels_min = 2,
-	.channels_max = 2,
-};
-
 static int byt_wm5102_codec_fixup(struct snd_soc_pcm_runtime *rtd,
 				  struct snd_pcm_hw_params *params)
 {
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jiapeng Chong

Fix the following gcc warning:

sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning:
‘byt_wm5102_dai_params’ defined but not used.

Thanks for the patch.

Quoted 24 lines
---
  sound/soc/intel/boards/bytcr_wm5102.c | 8 --------
  1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_wm5102.c +0 -8
index f38850e..fd584e3 100644
@@ -213,14 +213,6 @@ static int byt_wm5102_init(struct snd_soc_pcm_runtime *runtime)
  	return 0;
  }
 
-static const struct snd_soc_pcm_stream byt_wm5102_dai_params = {
-	.formats = SNDRV_PCM_FMTBIT_S16_LE,
-	.rate_min = 48000,
-	.rate_max = 48000,
-	.channels_min = 2,
-	.channels_max = 2,
-};
-
  static int byt_wm5102_codec_fixup(struct snd_soc_pcm_runtime *rtd,
  				  struct snd_pcm_hw_params *params)
  {