diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 18:29:57 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 11:20:15 (GMT) |
commit | 89dea487646831d47b0c56723a7c43c62b094c48 (patch) | |
tree | ab81835f13cfda46159c26b10db95055cd620754 /sound/soc/fsl | |
parent | aa4ac9201676ddd35aa56ae74bdf8e07454f04fc (diff) | |
download | linux-89dea487646831d47b0c56723a7c43c62b094c48.tar.xz |
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 eb093d5..dd931fa 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) err: if (ret) dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); - if (np) - of_node_put(ssi_np); + of_node_put(ssi_np); return ret; } |