Unverified Commit 12ba5ceb authored by Minghao Chi's avatar Minghao Chi Committed by Mark Brown
Browse files

ASoC: mediatek: remove unnecessary check of clk_disable_unprepare



Because clk_disable_unprepare already checked NULL clock
parameter, so the additional checks are unnecessary, just remove them.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20220602071809.278134-1-chi.minghao@zte.com.cn


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 82fa8f58
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -286,9 +286,7 @@ static int mt8173_afe_dais_set_clks(struct mtk_base_afe *afe,
static void mt8173_afe_dais_disable_clks(struct mtk_base_afe *afe,
					 struct clk *m_ck, struct clk *b_ck)
{
	if (m_ck)
	clk_disable_unprepare(m_ck);
	if (b_ck)
	clk_disable_unprepare(b_ck);
}