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)
commit37a86b32bf0e5c5ca23567d7b120306b9ac8497d
tree2b504d3cde7a3e0330fc946c0bea7b47d00d2823
parentc5003f08fe671fb1f18bca07e589c5cffeccbc9b
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