ASoC: rsnd: remove unneeded of_node_put()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 11 Sep 2023 00:45:03 +0000 (00:45 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 12 Sep 2023 13:34:09 +0000 (14:34 +0100)
The loop is not using "node", of_node_put(node) is not needed.

Cc: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8734zlilmd.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c

index e29c2fe..7552fa0 100644 (file)
@@ -1302,7 +1302,6 @@ audio_graph:
                i++;
                if (i >= RSND_MAX_COMPONENT) {
                        dev_info(dev, "reach to max component\n");
-                       of_node_put(node);
                        break;
                }
        }