]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ux500: mop500: Check before clk_put() not needed
authorYihao Han <hanyihao@vivo.com>
Tue, 17 May 2022 03:30:46 +0000 (20:30 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 17 May 2022 10:58:54 +0000 (11:58 +0100)
commitf6c87b543be3bfc789a8472f247aa5cc9d4a5bf8
tree2b504d3cde7a3e0330fc946c0bea7b47d00d2823
parent53ab02eb540488b25f7a811f60ad09f92e6a8f94
ASoC: ux500: mop500: Check before clk_put() not needed

clk_put() already checks the clk ptr using !clk and IS_ERR()
so there is no need to check it again before calling it.

Signed-off-by: Yihao Han <hanyihao@vivo.com>
Link: https://lore.kernel.org/r/20220517033050.5191-1-hanyihao@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ux500/mop500_ab8500.c