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: tlv320adc3xxx: 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 adc3xxx->mclk here.

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

authored by

Chen Ni and committed by
Mark Brown
9aa499f2 f1d742c3

+1 -2
+1 -2
sound/soc/codecs/tlv320adc3xxx.c
··· 1493 1493 { 1494 1494 struct adc3xxx *adc3xxx = i2c_get_clientdata(client); 1495 1495 1496 - if (adc3xxx->mclk) 1497 - clk_disable_unprepare(adc3xxx->mclk); 1496 + clk_disable_unprepare(adc3xxx->mclk); 1498 1497 adc3xxx_free_gpio(adc3xxx); 1499 1498 snd_soc_unregister_component(&client->dev); 1500 1499 }