Skip to contentSkip to conversation

ASoC: imx: Fix build warning of unused 'card' variable

PATCH Applied Fabio Estevam 2 participants 2 messages Aug 30, 2011 – Aug 31, 2011

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ASoC: imx: Fix build warning of unused 'card' variable

Fixes the following warning:

CC sound/soc/imx/imx-pcm-fiq.o
sound/soc/imx/imx-pcm-fiq.c: In function 'imx_pcm_fiq_new':
sound/soc/imx/imx-pcm-fiq.c:243: warning: unused variable 'card'
CC sound/soc/imx/imx-pcm-dma-mx2.o

---
 sound/soc/imx/imx-pcm-fiq.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/imx/imx-pcm-fiq.c +0 -1
index 309c59e..7945625 100644
@@ -240,7 +240,6 @@ static int ssi_irq = 0;
 
 static int imx_pcm_fiq_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;
Signature · 1 line
1.6.0.4
Applied
#1 lore raw
Quoted 8 lines · Fabio Estevam

Fixes the following warning:

CC sound/soc/imx/imx-pcm-fiq.o
sound/soc/imx/imx-pcm-fiq.c: In function 'imx_pcm_fiq_new':
sound/soc/imx/imx-pcm-fiq.c:243: warning: unused variable 'card'
CC sound/soc/imx/imx-pcm-dma-mx2.o

Applied, thanks.