Unverified Commit 37a86b32 authored by Yihao Han's avatar Yihao Han Committed by Mark Brown
Browse files

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: default avatarYihao Han <hanyihao@vivo.com>
Link: https://lore.kernel.org/r/20220517033050.5191-1-hanyihao@vivo.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c5003f08
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -433,11 +433,8 @@ void mop500_ab8500_remove(struct snd_soc_card *card)
{
	struct mop500_ab8500_drvdata *drvdata = snd_soc_card_get_drvdata(card);

	if (drvdata->clk_ptr_sysclk != NULL)
	clk_put(drvdata->clk_ptr_sysclk);
	if (drvdata->clk_ptr_ulpclk != NULL)
	clk_put(drvdata->clk_ptr_ulpclk);
	if (drvdata->clk_ptr_intclk != NULL)
	clk_put(drvdata->clk_ptr_intclk);

	snd_soc_card_set_drvdata(card, drvdata);