diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-10-29 08:41:37 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-05 14:52:35 +0000 |
commit | ec4177c83456b9e84d796ed0bc7656fd922937cb (patch) | |
tree | ac9194b71d1433e6cc31f809c898fdd23e6f3f11 /sound/soc/samsung | |
parent | ee5d28e735082a5676c85bdc578653097e4e29e2 (diff) | |
download | linux-ec4177c83456b9e84d796ed0bc7656fd922937cb.tar.bz2 |
ASoC: samsung: i2s: Remove redundant null check before clk_disable_unprepare
Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove it.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20201029084137.28771-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/i2s.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index df53d4ea808f..36969f0a3f9a 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -1212,8 +1212,7 @@ static int i2s_runtime_suspend(struct device *dev) priv->suspend_i2scon = readl(priv->addr + I2SCON); priv->suspend_i2spsr = readl(priv->addr + I2SPSR); - if (priv->op_clk) - clk_disable_unprepare(priv->op_clk); + clk_disable_unprepare(priv->op_clk); clk_disable_unprepare(priv->clk); return 0; |