提交 89dea487 编写于 作者: F Fabio Estevam 提交者: Mark Brown

ASoC: fsl: eukrea-tlv320: 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>
上级 aa4ac920
...@@ -217,8 +217,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) ...@@ -217,8 +217,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev)
err: err:
if (ret) if (ret)
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
if (np) of_node_put(ssi_np);
of_node_put(ssi_np);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册