projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
780b1a0
)
ASoC: adau17x1: Remove redundant null check before clk_disable_unprepare
author
Xu Wang
<vulab@iscas.ac.cn>
Fri, 8 Jan 2021 08:44:56 +0000
(08:44 +0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 12 Jan 2021 14:12:00 +0000
(14:12 +0000)
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/20210108084456.6603-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau17x1.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/adau17x1.c
b/sound/soc/codecs/adau17x1.c
index 30e072c80ac179f2b08263a20b2ac93c9995495a..546ee817803878f41d24cdc1130b58b67c8a46b7 100644
(file)
--- a/
sound/soc/codecs/adau17x1.c
+++ b/
sound/soc/codecs/adau17x1.c
@@
-1095,8
+1095,7
@@
void adau17x1_remove(struct device *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);