From: Fabio Estevam Date: Mon, 24 Feb 2014 03:20:43 +0000 (-0300) Subject: ASoC: fsl: imx-pcm-fiq: Remove unneeded 'out' label X-Git-Tag: firefly_0821_release~176^2~4090^2~1^2~5^2~6^6~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea9f8535a46d3753649b6e28f47e3109ca63284a;p=firefly-linux-kernel-4.4.55.git ASoC: fsl: imx-pcm-fiq: Remove unneeded 'out' label Instead of jumping to the 'out' label, just return the error code immediately. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 6553202dd48c..7abf6a079574 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c @@ -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;