Skip to contentSkip to conversation

ASoC: Remove unused variable 'card' in imx_pcm_fiq_new

PATCH In review Axel Lin 2 participants 2 messages Aug 31, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Remove unused variable 'card' in imx_pcm_fiq_new

Fix below build 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'

---
 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.7.4.1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:linux-kernel- [email protected]] On Behalf Of Axel Lin
Sent: Wednesday, August 31, 2011 1:50 PM
To: [email protected]
Cc: Sascha Hauer; Liam Girdwood; Mark Brown; [email protected]
Subject: [PATCH] ASoC: Remove unused variable 'card' in imx_pcm_fiq_new

Fix below build warning:

It seems Fabio already sent this out a few days ago. Please refer to:
http://comments.gmane.org/gmane.linux.alsa.devel/88686

Quoted 25 lines

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'

---
 sound/soc/imx/imx-pcm-fiq.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/imx/imx-pcm-fiq.c +0 -2
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;
--

1.7.4.1

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�