Commit 554a1b00 authored by Xu Wang's avatar Xu Wang Committed by Mark Brown

ASoC: adau17x1: 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/20210108084456.6603-1-vulab@iscas.ac.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 780b1a02
...@@ -1095,8 +1095,7 @@ void adau17x1_remove(struct device *dev) ...@@ -1095,8 +1095,7 @@ void adau17x1_remove(struct device *dev)
{ {
struct adau *adau = dev_get_drvdata(dev); struct adau *adau = dev_get_drvdata(dev);
if (adau->mclk) clk_disable_unprepare(adau->mclk);
clk_disable_unprepare(adau->mclk);
} }
EXPORT_SYMBOL_GPL(adau17x1_remove); EXPORT_SYMBOL_GPL(adau17x1_remove);
......
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