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>
This commit is contained in:
Kuninori Morimoto 2017-10-31 00:39:17 +00:00 committed by Mark Brown
parent b12f1e3a79
commit ed3ac14ca9
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -172,8 +172,7 @@ int rsnd_mod_init(struct rsnd_priv *priv,
void rsnd_mod_quit(struct rsnd_mod *mod) void rsnd_mod_quit(struct rsnd_mod *mod)
{ {
if (mod->clk) clk_unprepare(mod->clk);
clk_unprepare(mod->clk);
mod->clk = NULL; mod->clk = NULL;
} }