projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12f1e3
)
ASoC: rsnd: NULL check is not needed for clk_unprepare()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Tue, 31 Oct 2017 00:39:17 +0000
(
00:39
+0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 31 Oct 2017 11:06:42 +0000
(11:06 +0000)
clk_unprepare() is checking parameter by IS_ERR_OR_NULL().
clk NULL check is not needed on rsnd_mod_quit()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/rcar/core.c
b/sound/soc/sh/rcar/core.c
index 8fc3bf2b20f50550c88bc934bb712a5b082474e2..0216d3f530971c5aa521e86276167165ef981926 100644
(file)
--- a/
sound/soc/sh/rcar/core.c
+++ b/
sound/soc/sh/rcar/core.c
@@
-172,8
+172,7
@@
int rsnd_mod_init(struct rsnd_priv *priv,
void rsnd_mod_quit(struct rsnd_mod *mod)
{
- if (mod->clk)
- clk_unprepare(mod->clk);
+ clk_unprepare(mod->clk);
mod->clk = NULL;
}