ASoC: fsl_sai: Drop useless ret in startup()
authorNicolin Chen <Guangyu.Chen@freescale.com>
Fri, 20 Dec 2013 08:41:03 +0000 (16:41 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 21 Dec 2013 14:47:33 +0000 (14:47 +0000)
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>
sound/soc/fsl/fsl_sai.c

index 8450bff6fb1350c85b5a001f7b9d7bfaed1d60c6..fc4cd95ad0a94933b0038fc166a4dae512d5316f 100644 (file)
@@ -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,