aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-10-07 14:13:24 -0400
committerMark Brown <broonie@kernel.org>2014-10-20 07:20:15 -0400
commit051c77e552bf1c80adf3fb2fa5e145ca7c9b0f08 (patch)
treebf0012075080b0b97f1bb0ef46e41d8057e75c9a /sound/soc/fsl
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
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 <fabio.estevam@freescale.com> Acked-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/imx-wm8962.c6
1 files changed, 2 insertions, 4 deletions
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)
281clk_fail: 281clk_fail:
282 clk_disable_unprepare(data->codec_clk); 282 clk_disable_unprepare(data->codec_clk);
283fail: 283fail:
284 if (ssi_np) 284 of_node_put(ssi_np);
285 of_node_put(ssi_np); 285 of_node_put(codec_np);
286 if (codec_np)
287 of_node_put(codec_np);
288 286
289 return ret; 287 return ret;
290} 288}