]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ASoC: fsl: imx-spdif: Delete unneeded test before of_node_put
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 7 Oct 2014 18:29:56 +0000 (15:29 -0300)
committerMark 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

index e1dc40143600a05854331a539590603d0d859fed..0c9068ebe1e7f49a031ab62230f9c16680675bb6 100644 (file)
@@ -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;
 }