| From 166660873df9bf634c8552d8e0ed8cf7dbcb4033 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Tue, 31 Oct 2017 00:39:17 +0000 |
| Subject: [PATCH 0147/1795] 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> |
| (cherry picked from commit ed3ac14ca90074d51f365dba5ed535e76ea155ea) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| sound/soc/sh/rcar/core.c | 3 +-- |
| 1 file changed, 1 insertion(+), 2 deletions(-) |
| |
| diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c |
| index 5599b0c958de..85af6c020ae5 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, |
| |
| void rsnd_mod_quit(struct rsnd_mod *mod) |
| { |
| - if (mod->clk) |
| - clk_unprepare(mod->clk); |
| + clk_unprepare(mod->clk); |
| mod->clk = NULL; |
| } |
| |
| -- |
| 2.19.0 |
| |