diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 15:29:56 -0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 12:20:15 +0100 |
commit | aa4ac9201676ddd35aa56ae74bdf8e07454f04fc (patch) | |
tree | c215c1016e4486a9a7dc9bf39ad6d034a9c4d5cb /sound/soc/fsl/imx-spdif.c | |
parent | 7e3bc3c1c9017867b88593ecb4c0c1ae9da16fb2 (diff) | |
download | lwn-aa4ac9201676ddd35aa56ae74bdf8e07454f04fc.tar.gz lwn-aa4ac9201676ddd35aa56ae74bdf8e07454f04fc.zip |
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/imx-spdif.c')
-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) platform_set_drvdata(pdev, data); end: - if (spdif_np) - of_node_put(spdif_np); + of_node_put(spdif_np); return ret; } |