Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa4ac920 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7e3bc3c1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -74,7 +74,6 @@ static int imx_spdif_audio_probe(struct platform_device *pdev)
	platform_set_drvdata(pdev, data);

end:
	if (spdif_np)
	of_node_put(spdif_np);

	return ret;