ASoC: fix uninitialised variable in siu_dai.c
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 24 May 2010 08:55:16 +0000 (10:55 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 26 May 2010 15:46:50 +0000 (08:46 -0700)
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/sh/siu_dai.c

index 5452d19607e11adf0fe3c6361ee1769600a29656..c86c0858d6e29b1f411ffd878307cc4acf46502b 100644 (file)
@@ -587,6 +587,8 @@ static int siu_dai_prepare(struct snd_pcm_substream *substream,
                ret = siu_dai_spbstart(port_info);
                if (ret < 0)
                        goto fail;
+       } else {
+               ret = 0;
        }
 
        port_info->play_cap |= self;