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

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

ASoC: fsl: imx-sgtl5000: 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 051c77e5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -175,9 +175,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
fail:
	if (data && !IS_ERR(data->codec_clk))
		clk_put(data->codec_clk);
	if (ssi_np)
	of_node_put(ssi_np);
	if (codec_np)
	of_node_put(codec_np);

	return ret;