From: Kuninori Morimoto Date: Mon, 11 Sep 2023 00:45:03 +0000 (+0000) Subject: ASoC: rsnd: remove unneeded of_node_put() X-Git-Tag: v6.7-rc1~103^2~2^2~29^2~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b399dc73f012e463dad38410c147467a292ba4bb;p=thirdparty%2Flinux.git ASoC: rsnd: remove unneeded of_node_put() The loop is not using "node", of_node_put(node) is not needed. Cc: Julia Lawall Signed-off-by: Kuninori Morimoto Link: https://lore.kernel.org/r/8734zlilmd.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index e29c2fee95219..7552fa0a2578d 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -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; } }