aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-10-07 14:13:25 -0400
committerMark Brown <broonie@kernel.org>2014-10-20 07:20:15 -0400
commit7e3bc3c1c9017867b88593ecb4c0c1ae9da16fb2 (patch)
treece531b940a8429c433ce7283dbc23c419f7ce6a5 /sound/soc/fsl
parent051c77e552bf1c80adf3fb2fa5e145ca7c9b0f08 (diff)
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: 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-sgtl5000.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 1cb22dd034eb..1dab963a59f7 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -175,10 +175,8 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
175fail: 175fail:
176 if (data && !IS_ERR(data->codec_clk)) 176 if (data && !IS_ERR(data->codec_clk))
177 clk_put(data->codec_clk); 177 clk_put(data->codec_clk);
178 if (ssi_np) 178 of_node_put(ssi_np);
179 of_node_put(ssi_np); 179 of_node_put(codec_np);
180 if (codec_np)
181 of_node_put(codec_np);
182 180
183 return ret; 181 return ret;
184} 182}