diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-04-21 05:45:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-25 16:00:20 +0300 |
commit | 666b0cad75dc9517100295aed590aef2ff9a73d1 (patch) | |
tree | 349c217dea51dcd9883a17a0c600588d23259e28 /sound/soc/fsl/imx-hdmi.c | |
parent | 5755d0f63c677b8b63b82dceacd26d96617e3ba8 (diff) | |
download | linux-666b0cad75dc9517100295aed590aef2ff9a73d1.tar.xz |
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>
Diffstat (limited to 'sound/soc/fsl/imx-hdmi.c')
-rw-r--r-- | sound/soc/fsl/imx-hdmi.c | 3 |
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; } |