diff options
| author | Kuninori Morimoto <[email protected]> | 2024-05-09 00:33:11 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-05-09 04:59:23 +0000 |
| commit | c6f597bc598a8c3456fa017eb0c55e7a41bfce2c (patch) | |
| tree | 1ae1b1c389e436aabf80549283e997b064c79729 | |
| parent | ASoC: Use *-y instead of *-objs in Makefile (diff) | |
| download | kernel-c6f597bc598a8c3456fa017eb0c55e7a41bfce2c.tar.gz kernel-c6f597bc598a8c3456fa017eb0c55e7a41bfce2c.zip | |
ASoC: audio-graph-card2: remove unneeded of_node_get()
"lnk" is used as "port0", and it will be used to get "port1" by
of_get_next_child(ports, lnk). It will call of_node_put() inside. This
function is calling of_node_get() to make up for it, but it doesn't call
paired of_node_put(port0) when it quit function.
This of_node_get() itself is not needed, let's remove it.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
| -rw-r--r-- | sound/soc/generic/audio-graph-card2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index 62606e20be9a..c4d52fadebb6 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -1203,8 +1203,6 @@ static int graph_count_c2c(struct simple_util_priv *priv, struct device_node *codec0 = of_graph_get_remote_port(ep0); struct device_node *codec1 = of_graph_get_remote_port(ep1); - of_node_get(lnk); - /* * codec2codec { * ports { |
