Skip to content

Commit

Permalink
ASoC: fsl_sai: Drop useless ret in startup()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolin Chen authored and Mark Brown committed Dec 21, 2013
1 parent d22e28c commit 15b29da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sound/soc/fsl/fsl_sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15b29da

Please sign in to comment.