提交 7e3bc3c1 编写于 作者: F Fabio Estevam 提交者: Mark Brown

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: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 051c77e5
......@@ -175,10 +175,8 @@ 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);
of_node_put(ssi_np);
of_node_put(codec_np);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册