ASoC: soc-generic-dmaengine-pcm: cleanup cppcheck warning at dmaengine_pcm_new()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 16 Aug 2021 04:55:51 +0000 (13:55 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 16 Aug 2021 12:29:29 +0000 (13:29 +0100)
commit9cec66fa702646b83ed970a91edd712d156c380f
treed142103324dd9914bc5f335d202d826549ae0bf4
parent0a1e5ac50de2185d6e50b0d09fbed3ef06950d90
ASoC: soc-generic-dmaengine-pcm: cleanup cppcheck warning at dmaengine_pcm_new()

This patch cleanups below cppcheck warning.

sound/soc/soc-generic-dmaengine-pcm.c:233:28: style: The scope of the variable 'substream' can be reduced. [variableScope]
 struct snd_pcm_substream *substream;
                           ^

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/871r6u0yzs.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c