diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-08-02 09:01:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-02 14:21:31 +0300 |
commit | b81e8efa245af00e152a485297c611fe84a514a9 (patch) | |
tree | aa2faf70f0b4496d8b793dfdea6a4f37ff6273f3 /sound/soc/soc-topology.c | |
parent | ea8f6b29b4a5676ca4b67b571a63ebabec245fd2 (diff) | |
download | linux-b81e8efa245af00e152a485297c611fe84a514a9.tar.xz |
ASoC: soc-topology: cleanup cppcheck warning at snd_soc_find_dai_link()
This patch cleanups below cppcheck warning.
sound/soc/soc-topology.c:2129:27: style: The scope of the variable 'link' can be reduced. [variableScope]
struct snd_soc_dai_link *link;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87mtq0wfkn.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-topology.c')
-rw-r--r-- | sound/soc/soc-topology.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index a052dfe5efb6..f6e5ac3e0314 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -2124,10 +2124,9 @@ static struct snd_soc_dai_link *snd_soc_find_dai_link(struct snd_soc_card *card, const char *stream_name) { struct snd_soc_pcm_runtime *rtd; - struct snd_soc_dai_link *link; for_each_card_rtds(card, rtd) { - link = rtd->dai_link; + struct snd_soc_dai_link *link = rtd->dai_link; if (link->id != id) continue; |