Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mt8365: remove unnecessary NULL check before clk_disable_unprepare()

clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL.
Remove unneeded NULL check for clk here.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250312032600.1235158-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
f37ab219 1458fae1

+1 -2
+1 -2
sound/soc/mediatek/mt8365/mt8365-afe-clk.c
··· 49 49 50 50 void mt8365_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk) 51 51 { 52 - if (clk) 53 - clk_disable_unprepare(clk); 52 + clk_disable_unprepare(clk); 54 53 } 55 54 56 55 int mt8365_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,