Unverified Commit 1458fae1 authored by Chen Ni's avatar Chen Ni Committed by Mark Brown
Browse files

ASoC: ti: davinci-i2s: 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 dev->ext_clk here.

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250312033509.1235268-1-nichen@iscas.ac.cn


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d9a06936
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -892,7 +892,6 @@ static int davinci_i2s_probe(struct platform_device *pdev)
err_unregister_component:
	snd_soc_unregister_component(&pdev->dev);
err_disable_ext_clk:
	if (dev->ext_clk)
	clk_disable_unprepare(dev->ext_clk);
err_disable_clk:
	clk_disable_unprepare(dev->clk);
@@ -908,7 +907,6 @@ static void davinci_i2s_remove(struct platform_device *pdev)

	clk_disable_unprepare(dev->clk);

	if (dev->ext_clk)
	clk_disable_unprepare(dev->ext_clk);
}