projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5755d0f
)
ASoC: imx-hdmi: remove useless null check before call of_node_put()
author
Haowen Bai
<baihaowen@meizu.com>
Thu, 21 Apr 2022 02:45:20 +0000
(10:45 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 25 Apr 2022 13:00:20 +0000
(14:00 +0100)
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>
sound/soc/fsl/imx-hdmi.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/imx-hdmi.c
b/sound/soc/fsl/imx-hdmi.c
index
e10136a
..
2ae1a88
100644
(file)
--- 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;
}