projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e3bc3c
)
ASoC: fsl: imx-spdif: Delete unneeded test before of_node_put
author
Fabio Estevam
<fabio.estevam@freescale.com>
Tue, 7 Oct 2014 18:29:56 +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/imx-spdif.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/imx-spdif.c
b/sound/soc/fsl/imx-spdif.c
index e1dc40143600a05854331a539590603d0d859fed..0c9068ebe1e7f49a031ab62230f9c16680675bb6 100644
(file)
--- a/
sound/soc/fsl/imx-spdif.c
+++ b/
sound/soc/fsl/imx-spdif.c
@@
-74,8
+74,7
@@
static int imx_spdif_audio_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, data);
end:
- if (spdif_np)
- of_node_put(spdif_np);
+ of_node_put(spdif_np);
return ret;
}