diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-08-16 13:55:44 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-16 13:29:28 +0100 |
commit | 0a1e5ac50de2185d6e50b0d09fbed3ef06950d90 (patch) | |
tree | 18c1b6f92ae87611c0367b85c0cb272adad09b44 | |
parent | 31e53e137c5a1e48cd21b45089ca232d355d064c (diff) | |
download | linux-0a1e5ac50de2185d6e50b0d09fbed3ef06950d90.tar.gz linux-0a1e5ac50de2185d6e50b0d09fbed3ef06950d90.tar.bz2 linux-0a1e5ac50de2185d6e50b0d09fbed3ef06950d90.zip |
ASoC: soc-generic-dmaengine-pcm: cleanup cppcheck warning at dmaengine_pcm_hw_params()
This patch cleanups below cppcheck warning.
sound/soc/soc-generic-dmaengine-pcm.c:82:6: style: The scope of the variable 'ret' can be reduced. [variableScope]
int ret;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8735ra0yzz.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/soc-generic-dmaengine-pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 9ef80a48707e..9949db4649f4 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -79,7 +79,6 @@ static int dmaengine_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config); struct dma_slave_config slave_config; - int ret; memset(&slave_config, 0, sizeof(slave_config)); @@ -89,7 +88,7 @@ static int dmaengine_pcm_hw_params(struct snd_soc_component *component, prepare_slave_config = pcm->config->prepare_slave_config; if (prepare_slave_config) { - ret = prepare_slave_config(substream, params, &slave_config); + int ret = prepare_slave_config(substream, params, &slave_config); if (ret) return ret; |