diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-07 20:29:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 13:20:15 +0200 |
commit | 89dea487646831d47b0c56723a7c43c62b094c48 (patch) | |
tree | ab81835f13cfda46159c26b10db95055cd620754 /sound | |
parent | ASoC: fsl: imx-spdif: Delete unneeded test before of_node_put (diff) | |
download | linux-89dea487646831d47b0c56723a7c43c62b094c48.tar.xz linux-89dea487646831d47b0c56723a7c43c62b094c48.zip |
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')
-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) 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; } |