diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2015-06-04 15:57:20 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-04 16:07:59 (GMT) |
commit | c8d8ff0a9da689d9649ce7b052190abb1e49a930 (patch) | |
tree | d8b0add7e09bb321cce472bf7611c848eb7891a1 /sound/soc | |
parent | 3898182b500fca6dbc2fa2fc1c16397dba1938c8 (diff) | |
download | linux-c8d8ff0a9da689d9649ce7b052190abb1e49a930.tar.xz |
ASoC: zx: fix simple_return.cocci warnings
sound/soc/zte/zx296702-spdif.c:191:1-4: WARNING: end returns can be simpified
Simplify a trivial if-return sequence. Possibly combine with a
preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/zte/zx296702-spdif.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/zte/zx296702-spdif.c b/sound/soc/zte/zx296702-spdif.c index 27d940c..4a93bca 100644 --- a/sound/soc/zte/zx296702-spdif.c +++ b/sound/soc/zte/zx296702-spdif.c @@ -188,11 +188,7 @@ static int zx_spdif_hw_params(struct snd_pcm_substream *substream, ret = zx_spdif_chanstats(zx_spdif->reg_base, rate); if (ret) return ret; - ret = clk_set_rate(spdif->dai_clk, rate * ch_num * ZX_SPDIF_CLK_RAT); - if (ret) - return ret; - - return 0; + return clk_set_rate(spdif->dai_clk, rate * ch_num * ZX_SPDIF_CLK_RAT); } static void zx_spdif_cfg_tx(void __iomem *base, int on) |