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: sta32x: 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>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250325032226.603963-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
ea61f39b 55335188

+2 -4
+2 -4
sound/soc/codecs/sta32x.c
··· 983 983 err_regulator_bulk_disable: 984 984 regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); 985 985 err_clk_disable_unprepare: 986 - if (sta32x->xti_clk) 987 - clk_disable_unprepare(sta32x->xti_clk); 986 + clk_disable_unprepare(sta32x->xti_clk); 988 987 return ret; 989 988 } 990 989 ··· 994 995 sta32x_watchdog_stop(sta32x); 995 996 regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); 996 997 997 - if (sta32x->xti_clk) 998 - clk_disable_unprepare(sta32x->xti_clk); 998 + clk_disable_unprepare(sta32x->xti_clk); 999 999 } 1000 1000 1001 1001 static const struct snd_soc_component_driver sta32x_component = {