From: Fabio Estevam Date: Tue, 7 Oct 2014 18:13:24 +0000 (-0300) Subject: ASoC: fsl: imx-wm8962: Delete unneeded test before of_node_put X-Git-Tag: v4.13~6155^2~20^2~17^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=051c77e552bf1c80adf3fb2fa5e145ca7c9b0f08;p=mirror_ubuntu-bionic-kernel.git 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: Fabio Estevam Acked-by: Nicolin Chen Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index 3a3d17ce6ba4..48179ffe1543 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c @@ -281,10 +281,8 @@ static int imx_wm8962_probe(struct platform_device *pdev) clk_fail: clk_disable_unprepare(data->codec_clk); fail: - 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; }