]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl: imx-pcm-fiq: Remove unneeded 'out' label
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 24 Feb 2014 03:20:43 +0000 (00:20 -0300)
committerMark Brown <broonie@linaro.org>
Mon, 24 Feb 2014 05:41:15 +0000 (14:41 +0900)
Instead of jumping to the 'out' label, just return the error code immediately.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-pcm-fiq.c

index 6553202dd48c09d19fe2916447f553023276a897..7abf6a07957451235ee2863144d3a7377890f1fc 100644 (file)
@@ -270,18 +270,17 @@ static int imx_pcm_new(struct snd_soc_pcm_runtime *rtd)
                ret = imx_pcm_preallocate_dma_buffer(pcm,
                        SNDRV_PCM_STREAM_PLAYBACK);
                if (ret)
-                       goto out;
+                       return ret;
        }
 
        if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
                ret = imx_pcm_preallocate_dma_buffer(pcm,
                        SNDRV_PCM_STREAM_CAPTURE);
                if (ret)
-                       goto out;
+                       return ret;
        }
 
-out:
-       return ret;
+       return 0;
 }
 
 static int ssi_irq = 0;