diff options
author | Nicolin Chen <Guangyu.Chen@freescale.com> | 2013-12-20 03:41:03 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:57:37 -0400 |
commit | ddcf8448d4e641046b76ec61cf5ab60650e2a5db (patch) | |
tree | e778fe6b0a18d1e0e6c40739d6aee4734b763251 /sound/soc/fsl/fsl_sai.c | |
parent | 38e3a5f73123dbad62a31fef3902a8774253e04f (diff) |
ASoC: fsl_sai: Drop useless ret in startup()
We can save this ret to make the code neater.
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Reviewed-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 15b29dae6604d2d2daf586429ff12f26272a868a)
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 8450bff6fb13..fc4cd95ad0a9 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c | |||
@@ -334,12 +334,9 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd, | |||
334 | static int fsl_sai_startup(struct snd_pcm_substream *substream, | 334 | static int fsl_sai_startup(struct snd_pcm_substream *substream, |
335 | struct snd_soc_dai *cpu_dai) | 335 | struct snd_soc_dai *cpu_dai) |
336 | { | 336 | { |
337 | int ret; | ||
338 | struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai); | 337 | struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai); |
339 | 338 | ||
340 | ret = clk_prepare_enable(sai->clk); | 339 | return clk_prepare_enable(sai->clk); |
341 | |||
342 | return ret; | ||
343 | } | 340 | } |
344 | 341 | ||
345 | static void fsl_sai_shutdown(struct snd_pcm_substream *substream, | 342 | static void fsl_sai_shutdown(struct snd_pcm_substream *substream, |