Skip to contentSkip to conversation

ASoC: Remove unused 'r' variable from dapm_connect_dai_link_widgets()

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Jul 17, 2014

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

PATCH 1/1 ASoC: Remove unused 'r' variable from dapm_connect_dai_link_widgets()

It was accidentally added in commit 44ba2641 ("ASoC: dapm: Add support for DAI multicodec").

---
 sound/soc/soc-dapm.c | 3 ---
 1 file changed, 3 deletions(-)
sound/soc/soc-dapm.c +0 -3
index 9a047f3..8cb68a38 100644
@@ -3399,11 +3399,8 @@ static void dapm_connect_dai_link_widgets(struct snd_soc_card *card,
 {
 	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
 	struct snd_soc_dapm_widget *sink, *source;
-	struct snd_soc_dapm_route r;
 	int i;
 
-	memset(&r, 0, sizeof(r));
-
 	for (i = 0; i < rtd->num_codecs; i++) {
 		struct snd_soc_dai *codec_dai = rtd->codec_dais[i];
 
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

It was accidentally added in commit 44ba2641 ("ASoC: dapm: Add support for DAI multicodec").

Applied, thanks.