ASoC: Fix compile error in sound/soc/mid-x86/sst_platform.c
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 15 Dec 2011 17:24:54 +0000 (18:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Dec 2011 06:50:15 +0000 (07:50 +0100)
The variable ret_val is used but not declared. This causes
the following compile error:

sound/soc/mid-x86/sst_platform.c: In function ‘sst_platform_open’:
sound/soc/mid-x86/sst_platform.c:274:2: error: ‘ret_val’ undeclared (first use in this function)
sound/soc/mid-x86/sst_platform.c:274:2: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [sound/soc/mid-x86/sst_platform.o] Error 1

Fix this.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/mid-x86/sst_platform.c

index 24f94714694719cafb485a9604a9e5b77dd282c8..11c39c548a063e2a478f1bb5d34a4a97e31662f8 100644 (file)
@@ -267,6 +267,7 @@ static int sst_platform_open(struct snd_pcm_substream *substream)
 {
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct sst_runtime_stream *stream;
+       int ret_val;
 
        pr_debug("sst_platform_open called\n");