summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-04-21 10:45:20 +0800
committerMark Brown <broonie@kernel.org>2022-04-25 14:00:20 +0100
commit666b0cad75dc9517100295aed590aef2ff9a73d1 (patch)
tree349c217dea51dcd9883a17a0c600588d23259e28
parent5755d0f63c677b8b63b82dceacd26d96617e3ba8 (diff)
downloadlinux-stable-666b0cad75dc9517100295aed590aef2ff9a73d1.tar.gz
linux-stable-666b0cad75dc9517100295aed590aef2ff9a73d1.tar.bz2
linux-stable-666b0cad75dc9517100295aed590aef2ff9a73d1.zip
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 <baihaowen@meizu.com> Link: https://lore.kernel.org/r/1650509120-25377-1-git-send-email-baihaowen@meizu.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/fsl/imx-hdmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c
index e10136afa741..2ae1a889c68d 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;
}