projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa4ac92
)
ASoC: fsl: eukrea-tlv320: Delete unneeded test before of_node_put
author
Fabio Estevam
<fabio.estevam@freescale.com>
Tue, 7 Oct 2014 18:29:57 +0000
(15:29 -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/eukrea-tlv320.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/eukrea-tlv320.c
b/sound/soc/fsl/eukrea-tlv320.c
index eb093d5b85c4cce3f0bf10616aeb1fcc61f859e9..dd931fa5a8131c15754c26ff2dc178129b1229a2 100644
(file)
--- a/
sound/soc/fsl/eukrea-tlv320.c
+++ b/
sound/soc/fsl/eukrea-tlv320.c
@@
-217,8
+217,7
@@
static int eukrea_tlv320_probe(struct platform_device *pdev)
err:
if (ret)
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
- if (np)
- of_node_put(ssi_np);
+ of_node_put(ssi_np);
return ret;
}