projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c13828
)
ASoC: es8328: Remove redundant null check before clk_disable_unprepare
author
Xu Wang
<vulab@iscas.ac.cn>
Fri, 8 Jan 2021 08:58:34 +0000
(08:58 +0000)
committer
Mark Brown
<broonie@kernel.org>
Fri, 8 Jan 2021 14:00:43 +0000
(14:00 +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/20210108085834.7168-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/es8328.c
b/sound/soc/codecs/es8328.c
index 7e26231a596a415f9b78d5b7121fb5ec45fcd9b4..b537300d0ce860808a5ce1d7b689ef4879a4fa5f 100644
(file)
--- 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);