]> 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)
commitd00eb36151a324fb586dbe12c6dd53207270caf4
tree2b504d3cde7a3e0330fc946c0bea7b47d00d2823
parent427c93cc3fbb99a05e6dbac26e6c5c48796b4974
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