summaryrefslogtreecommitdiff
path: root/sound/soc/zte/zx296702-spdif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/zte/zx296702-spdif.c')
-rw-r--r--sound/soc/zte/zx296702-spdif.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/zte/zx296702-spdif.c b/sound/soc/zte/zx296702-spdif.c
index 27d940c37f79..4a93bca232ff 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)