diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 14:29:57 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 07:20:15 -0400 |
commit | 89dea487646831d47b0c56723a7c43c62b094c48 (patch) | |
tree | ab81835f13cfda46159c26b10db95055cd620754 /sound/soc/fsl | |
parent | aa4ac9201676ddd35aa56ae74bdf8e07454f04fc (diff) |
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: 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/eukrea-tlv320.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index eb093d5b85c4..dd931fa5a813 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c | |||
@@ -217,8 +217,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) | |||
217 | err: | 217 | err: |
218 | if (ret) | 218 | if (ret) |
219 | dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); | 219 | dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); |
220 | if (np) | 220 | of_node_put(ssi_np); |
221 | of_node_put(ssi_np); | ||
222 | 221 | ||
223 | return ret; | 222 | return ret; |
224 | } | 223 | } |