aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-10-30 20:39:17 -0400
committerMark Brown <broonie@kernel.org>2017-10-31 07:06:42 -0400
commited3ac14ca90074d51f365dba5ed535e76ea155ea (patch)
treef8c31b982df74b3d230425490438814e99ebb9a4
parentb12f1e3a798e19727ca632d92abe619b418ad0d0 (diff)
ASoC: rsnd: NULL check is not needed for clk_unprepare()
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>
-rw-r--r--sound/soc/sh/rcar/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 8fc3bf2b20f5..0216d3f53097 100644
--- 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,
172 172
173void rsnd_mod_quit(struct rsnd_mod *mod) 173void rsnd_mod_quit(struct rsnd_mod *mod)
174{ 174{
175 if (mod->clk) 175 clk_unprepare(mod->clk);
176 clk_unprepare(mod->clk);
177 mod->clk = NULL; 176 mod->clk = NULL;
178} 177}
179 178