summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2013-12-20 08:41:03 (GMT)
committerMark Brown <broonie@linaro.org>2013-12-21 14:47:33 (GMT)
commit15b29dae6604d2d2daf586429ff12f26272a868a (patch)
tree4cd7dce056cc9cf716282360d0c09c3af6a488d8 /sound/soc/fsl/fsl_sai.c
parentd22e28cce80a93578787d273bf1fa26a2be2636b (diff)
downloadlinux-15b29dae6604d2d2daf586429ff12f26272a868a.tar.xz
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>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 8450bff..fc4cd95 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,
static int fsl_sai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai)
{
- int ret;
struct fsl_sai *sai = snd_soc_dai_get_drvdata(cpu_dai);
- ret = clk_prepare_enable(sai->clk);
-
- return ret;
+ return clk_prepare_enable(sai->clk);
}
static void fsl_sai_shutdown(struct snd_pcm_substream *substream,