Commit 051c77e5 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: fsl: imx-wm8962: 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 f114040e
...@@ -281,10 +281,8 @@ static int imx_wm8962_probe(struct platform_device *pdev) ...@@ -281,10 +281,8 @@ static int imx_wm8962_probe(struct platform_device *pdev)
clk_fail: clk_fail:
clk_disable_unprepare(data->codec_clk); clk_disable_unprepare(data->codec_clk);
fail: fail:
if (ssi_np) of_node_put(ssi_np);
of_node_put(ssi_np); of_node_put(codec_np);
if (codec_np)
of_node_put(codec_np);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment