Browse Source

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>
Fabio Estevam 11 years ago
parent
commit
aa4ac92016
1 changed files with 1 additions and 2 deletions
  1. 1 2
      sound/soc/fsl/imx-spdif.c

+ 1 - 2
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);
 	platform_set_drvdata(pdev, data);
 
 
 end:
 end:
-	if (spdif_np)
-		of_node_put(spdif_np);
+	of_node_put(spdif_np);
 
 
 	return ret;
 	return ret;
 }
 }