Fabio Estevam | 30 Aug 05:28 2011
Picon

[PATCH] 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

Signed-off-by: Fabio Estevam <fabio.estevam <at> freescale.com>
---
 sound/soc/imx/imx-pcm-fiq.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/sound/soc/imx/imx-pcm-fiq.c b/sound/soc/imx/imx-pcm-fiq.c
index 309c59e..7945625 100644
--- a/sound/soc/imx/imx-pcm-fiq.c
+++ b/sound/soc/imx/imx-pcm-fiq.c
 <at>  <at>  -240,7 +240,6  <at>  <at>  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.6.0.4

Mark Brown | 31 Aug 10:48 2011

Re: [PATCH] ASoC: imx: Fix build warning of unused 'card' variable

On Tue, Aug 30, 2011 at 12:28:42AM -0300, Fabio Estevam wrote:
> 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
> 
> Signed-off-by: Fabio Estevam <fabio.estevam <at> freescale.com>

Applied, thanks.

Gmane