mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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: Zeal Robot <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
1 parent
82fa8f581a
commit
12ba5ceb4a
1 file changed
+2
-4
@@ -286,10 +286,8 @@ 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);
|
||||
clk_disable_unprepare(m_ck);
|
||||
clk_disable_unprepare(b_ck);
|
||||
}
|
||||
|
||||
static int mt8173_afe_i2s_startup(struct snd_pcm_substream *substream,
|
||||
|
||||
Reference in new issue
Block a user