Skip to contentSkip to conversation

ASoC: pxa2xx-pcm: remove unused variable 'dai'

PATCH Applied Axel Lin 3 participants 3 messages Jul 6, 2011 – Jul 7, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: pxa2xx-pcm: remove unused variable 'dai'

Remove unused variable 'dai' to eliminate below warning.

CC sound/soc/pxa/pxa2xx-pcm.o
sound/soc/pxa/pxa2xx-pcm.c: In function 'pxa2xx_soc_pcm_new':
sound/soc/pxa/pxa2xx-pcm.c:91: warning: unused variable 'dai'

---
 sound/soc/pxa/pxa2xx-pcm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/pxa/pxa2xx-pcm.c +0 -1
index da28394..c430600 100644
@@ -88,7 +88,6 @@ static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32);
 static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_card *card = rtd->card->snd_card;
-	struct snd_soc_dai *dai = rtd->cpu_dai;
 	struct snd_pcm *pcm = rtd->pcm;
 	int ret = 0;
 
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Axel Lin

Remove unused variable 'dai' to eliminate below warning.

CC sound/soc/pxa/pxa2xx-pcm.o
sound/soc/pxa/pxa2xx-pcm.c: In function 'pxa2xx_soc_pcm_new':
sound/soc/pxa/pxa2xx-pcm.c:91: warning: unused variable 'dai'

---
 sound/soc/pxa/pxa2xx-pcm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/pxa/pxa2xx-pcm.c +0 -0
index da28394..c430600 100644

sound/soc/pxa/pxa2xx-pcm.c static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32); · line 93

Quoted 7 lines
sound/soc/pxa/pxa2xx-pcm.c +0 -1
@@ -88,7 +88,6 @@ static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32);
 static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_card *card = rtd->card->snd_card;
-	struct snd_soc_dai *dai = rtd->cpu_dai;
 	struct snd_pcm *pcm = rtd->pcm;
 	int ret = 0;