diff options
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) | |||
270 | ret = imx_pcm_preallocate_dma_buffer(pcm, | 270 | ret = imx_pcm_preallocate_dma_buffer(pcm, |
271 | SNDRV_PCM_STREAM_PLAYBACK); | 271 | SNDRV_PCM_STREAM_PLAYBACK); |
272 | if (ret) | 272 | if (ret) |
273 | goto out; | 273 | return ret; |
274 | } | 274 | } |
275 | 275 | ||
276 | if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { | 276 | if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { |
277 | ret = imx_pcm_preallocate_dma_buffer(pcm, | 277 | ret = imx_pcm_preallocate_dma_buffer(pcm, |
278 | SNDRV_PCM_STREAM_CAPTURE); | 278 | SNDRV_PCM_STREAM_CAPTURE); |
279 | if (ret) | 279 | if (ret) |
280 | goto out; | 280 | return ret; |
281 | } | 281 | } |
282 | 282 | ||
283 | out: | 283 | return 0; |
284 | return ret; | ||
285 | } | 284 | } |
286 | 285 | ||
287 | static int ssi_irq = 0; | 286 | static int ssi_irq = 0; |