Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea9f8535 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 05cf482d
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -270,18 +270,17 @@ static int imx_pcm_new(struct snd_soc_pcm_runtime *rtd)
		ret = imx_pcm_preallocate_dma_buffer(pcm,
		ret = imx_pcm_preallocate_dma_buffer(pcm,
			SNDRV_PCM_STREAM_PLAYBACK);
			SNDRV_PCM_STREAM_PLAYBACK);
		if (ret)
		if (ret)
			goto out;
			return ret;
	}
	}


	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
		ret = imx_pcm_preallocate_dma_buffer(pcm,
		ret = imx_pcm_preallocate_dma_buffer(pcm,
			SNDRV_PCM_STREAM_CAPTURE);
			SNDRV_PCM_STREAM_CAPTURE);
		if (ret)
		if (ret)
			goto out;
			return ret;
	}
	}


out:
	return 0;
	return ret;
}
}


static int ssi_irq = 0;
static int ssi_irq = 0;