summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-10-07 18:13:24 (GMT)
committerMark Brown <broonie@kernel.org>2014-10-20 11:20:15 (GMT)
commit051c77e552bf1c80adf3fb2fa5e145ca7c9b0f08 (patch)
treebf0012075080b0b97f1bb0ef46e41d8057e75c9a /sound/soc/fsl
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadlinux-051c77e552bf1c80adf3fb2fa5e145ca7c9b0f08.tar.xz
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 3a3d17c..48179ff 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;
}