summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2021-01-08 08:58:34 +0000
committerMark Brown <broonie@kernel.org>2021-01-08 14:00:43 +0000
commit31c51a424f5163ee6f14fcc251f81078457123e1 (patch)
treebf3b85fad339d3988d3415f9acba02622f5114d2
parent2c1382840c194533399818d0ed39dfc94f906187 (diff)
ASoC: es8328: 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/20210108085834.7168-1-vulab@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/es8328.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index 7e26231a596a..b537300d0ce8 100644
--- a/sound/soc/codecs/es8328.c
+++ b/sound/soc/codecs/es8328.c
@@ -809,8 +809,7 @@ static void es8328_remove(struct snd_soc_component *component)
es8328 = snd_soc_component_get_drvdata(component);
- if (es8328->clk)
- clk_disable_unprepare(es8328->clk);
+ clk_disable_unprepare(es8328->clk);
regulator_bulk_disable(ARRAY_SIZE(es8328->supplies),
es8328->supplies);