mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
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>
This commit is contained in:
parent
aa4ac92016
commit
89dea48764
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user