diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 14:29:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 07:20:15 -0400 |
commit | aa4ac9201676ddd35aa56ae74bdf8e07454f04fc (patch) | |
tree | c215c1016e4486a9a7dc9bf39ad6d034a9c4d5cb /sound/soc/fsl | |
parent | 7e3bc3c1c9017867b88593ecb4c0c1ae9da16fb2 (diff) |
ASoC: fsl: imx-spdif: Delete unneeded test before of_node_put
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>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-spdif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index e1dc40143600..0c9068ebe1e7 100644 --- 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) | |||
74 | platform_set_drvdata(pdev, data); | 74 | platform_set_drvdata(pdev, data); |
75 | 75 | ||
76 | end: | 76 | end: |
77 | if (spdif_np) | 77 | of_node_put(spdif_np); |
78 | of_node_put(spdif_np); | ||
79 | 78 | ||
80 | return ret; | 79 | return ret; |
81 | } | 80 | } |