aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-09 11:45:53 -0400
committerMark Brown <broonie@kernel.org>2015-05-11 11:13:45 -0400
commit0f9a7fecf2514cd5cb14be8e9aae3556c403ff1f (patch)
tree7df02792a513716eb817a73abf353bd40142d504
parentd0657fe8c645e3963d2a134d2a110c0b8cf08a9d (diff)
ASoC: fsl: imx-mc13783: Simplify trivial if-return sequence
Simplify a trivial if-return sequence. Possibly combine with a preceding function call. The semantic patch that makes this change is available in scripts/coccinelle/misc/simple_return.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Timur Tabi <timur@tabi.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/fsl/imx-mc13783.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index 9e6493d4e7ff..bb0459018b45 100644
--- a/sound/soc/fsl/imx-mc13783.c
+++ b/sound/soc/fsl/imx-mc13783.c
@@ -45,11 +45,7 @@ static int imx_mc13783_hifi_hw_params(struct snd_pcm_substream *substream,
45 if (ret) 45 if (ret)
46 return ret; 46 return ret;
47 47
48 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0x3, 0x3, 2, 16); 48 return snd_soc_dai_set_tdm_slot(cpu_dai, 0x3, 0x3, 2, 16);
49 if (ret)
50 return ret;
51
52 return 0;
53} 49}
54 50
55static struct snd_soc_ops imx_mc13783_hifi_ops = { 51static struct snd_soc_ops imx_mc13783_hifi_ops = {