From: Haowen Bai Date: Thu, 21 Apr 2022 02:45:20 +0000 (+0800) Subject: ASoC: imx-hdmi: remove useless null check before call of_node_put() X-Git-Tag: v5.19-rc1~152^2~2^2~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=666b0cad75dc9517100295aed590aef2ff9a73d1;p=thirdparty%2Fkernel%2Flinux.git ASoC: imx-hdmi: remove useless null check before call of_node_put() No need to add null check before call of_node_put(), since the implementation of of_node_put() has done it. Signed-off-by: Haowen Bai Link: https://lore.kernel.org/r/1650509120-25377-1-git-send-email-baihaowen@meizu.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index e10136afa7416..2ae1a889c68d5 100644 --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound/soc/fsl/imx-hdmi.c @@ -206,8 +206,7 @@ static int imx_hdmi_probe(struct platform_device *pdev) } fail: - if (cpu_np) - of_node_put(cpu_np); + of_node_put(cpu_np); return ret; }