* [PATCH] ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare()
@ 2025-03-12 3:43 Chen Ni
2025-03-17 10:17 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Chen Ni @ 2025-03-12 3:43 UTC (permalink / raw)
To: shenghao-ding, kevin-lu, baojun.xu, lgirdwood, broonie, perex, tiwai
Cc: linux-sound, linux-kernel, Chen Ni
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>
---
sound/soc/codecs/tlv320adc3xxx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/codecs/tlv320adc3xxx.c b/sound/soc/codecs/tlv320adc3xxx.c
index 1a50ff675244..191e067ed1c9 100644
--- a/sound/soc/codecs/tlv320adc3xxx.c
+++ b/sound/soc/codecs/tlv320adc3xxx.c
@@ -1493,8 +1493,7 @@ static void adc3xxx_i2c_remove(struct i2c_client *client)
{
struct adc3xxx *adc3xxx = i2c_get_clientdata(client);
- if (adc3xxx->mclk)
- clk_disable_unprepare(adc3xxx->mclk);
+ clk_disable_unprepare(adc3xxx->mclk);
adc3xxx_free_gpio(adc3xxx);
snd_soc_unregister_component(&client->dev);
}
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare()
2025-03-12 3:43 [PATCH] ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare() Chen Ni
@ 2025-03-17 10:17 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2025-03-17 10:17 UTC (permalink / raw)
To: shenghao-ding, kevin-lu, baojun.xu, lgirdwood, perex, tiwai, Chen Ni
Cc: linux-sound, linux-kernel
On Wed, 12 Mar 2025 11:43:37 +0800, Chen Ni wrote:
> clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL.
> Remove unneeded NULL check for adc3xxx->mclk here.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare()
commit: 9aa499f28ef8aeda82556dd204bc42dc96e2f1e4
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-17 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-12 3:43 [PATCH] ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare() Chen Ni
2025-03-17 10:17 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®