From: Nicolin Chen Date: Fri, 20 Dec 2013 08:41:03 +0000 (+0800) Subject: ASoC: fsl_sai: Drop useless ret in startup() X-Git-Tag: firefly_0821_release~176^2~4492^2~11^2^2^12~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=15b29dae6604d2d2daf586429ff12f26272a868a;p=firefly-linux-kernel-4.4.55.git ASoC: fsl_sai: Drop useless ret in startup() We can save this ret to make the code neater. Signed-off-by: Nicolin Chen Reviewed-by: Xiubo Li Signed-off-by: Mark Brown --- 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, 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,