diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 20:29:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 13:20:15 +0200 |
commit | aa4ac9201676ddd35aa56ae74bdf8e07454f04fc (patch) | |
tree | c215c1016e4486a9a7dc9bf39ad6d034a9c4d5cb /sound/soc/fsl | |
parent | ASoC: fsl: imx-sgtl5000: Delete unneeded test before of_node_put (diff) | |
download | linux-aa4ac9201676ddd35aa56ae74bdf8e07454f04fc.tar.xz linux-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')
-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; } |