]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: rcar: remove unused variable
authorArnd Bergmann <arnd@arndb.de>
Mon, 23 Nov 2015 09:35:54 +0000 (10:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 12:59:02 +0000 (12:59 +0000)
After a recent cleanup, the soc_card variable became unused
and now produces a warning:

soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable]

This removes the variable.

Fixes: 1a497983a5ae ("ASoC: Change the PCM runtime array to a list")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c

index 8c4f54b0cb92bdedb6be20b4013d971d6e14afaa..e1da5654fa25cfac96e3879120cee02bd3a07d44 100644 (file)
@@ -1033,7 +1033,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
                            void (*update)(struct rsnd_dai_stream *io,
                                           struct rsnd_mod *mod))
 {
-       struct snd_soc_card *soc_card = rtd->card;
        struct snd_card *card = rtd->card->snd_card;
        struct snd_kcontrol *kctrl;
        struct snd_kcontrol_new knew = {