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 e29c2fee9521943bd961b5725b30a9024a00e72b..7552fa0a2578d07ae5b474d8dd8feaf10b74baf1 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;
                }
        }