projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114040
)
ASoC: fsl: imx-wm8962: Delete unneeded test before of_node_put
author
Fabio Estevam
<fabio.estevam@freescale.com>
Tue, 7 Oct 2014 18:13:24 +0000
(15:13 -0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 20 Oct 2014 11:20:15 +0000
(12:20 +0100)
of_node_put() supports NULL as its argument, so the initial test is not
necessary.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-wm8962.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/imx-wm8962.c
b/sound/soc/fsl/imx-wm8962.c
index 3a3d17ce6ba40feea5dc6582693d7c1ee846ef13..48179ffe1543c9bb5bcf07e8d736155aa94eb7c2 100644
(file)
--- a/
sound/soc/fsl/imx-wm8962.c
+++ b/
sound/soc/fsl/imx-wm8962.c
@@
-281,10
+281,8
@@
static int imx_wm8962_probe(struct platform_device *pdev)
clk_fail:
clk_disable_unprepare(data->codec_clk);
fail:
- if (ssi_np)
- of_node_put(ssi_np);
- if (codec_np)
- of_node_put(codec_np);
+ of_node_put(ssi_np);
+ of_node_put(codec_np);
return ret;
}