Commit 31c51a42 authored by Xu Wang's avatar Xu Wang Committed by Mark Brown

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: default avatarXu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20210108085834.7168-1-vulab@iscas.ac.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2c138284
...@@ -809,8 +809,7 @@ static void es8328_remove(struct snd_soc_component *component) ...@@ -809,8 +809,7 @@ static void es8328_remove(struct snd_soc_component *component)
es8328 = snd_soc_component_get_drvdata(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), regulator_bulk_disable(ARRAY_SIZE(es8328->supplies),
es8328->supplies); es8328->supplies);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment