diff options
| author | kernel test robot <[email protected]> | 2021-03-28 14:54:45 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-03-29 16:27:22 +0000 |
| commit | aa320c7cd45647b75af2233430d36a8d154703d4 (patch) | |
| tree | ebd03ad394d808d3e9de5da0b474533934e8d87d | |
| parent | ASoC: max98373: Added 30ms turn on/off time delay (diff) | |
| download | kernel-aa320c7cd45647b75af2233430d36a8d154703d4.tar.gz kernel-aa320c7cd45647b75af2233430d36a8d154703d4.zip | |
ASoC: cygnus: fix for_each_child.cocci warnings
Function "for_each_available_child_of_node" should have of_node_put()
before return around line 1352.
Generated by: scripts/coccinelle/iterators/for_each_child.cocci
CC: Sumera Priyadarsini <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2103281651320.2854@hadrien
Signed-off-by: Mark Brown <[email protected]>
| -rw-r--r-- | sound/soc/bcm/cygnus-ssp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c index 6e634b448293..aa16a2375134 100644 --- a/sound/soc/bcm/cygnus-ssp.c +++ b/sound/soc/bcm/cygnus-ssp.c @@ -1348,8 +1348,10 @@ static int cygnus_ssp_probe(struct platform_device *pdev) &cygnus_ssp_dai[active_port_count]); /* negative is err, 0 is active and good, 1 is disabled */ - if (err < 0) + if (err < 0) { + of_node_put(child_node); return err; + } else if (!err) { dev_dbg(dev, "Activating DAI: %s\n", cygnus_ssp_dai[active_port_count].name); |
