OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bc3e1f
)
ASoC: soc-pcm: cleanup cppcheck warning at soc_pcm_components_close()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Tue, 27 Jul 2021 02:05:38 +0000
(11:05 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 27 Jul 2021 12:14:45 +0000
(13:14 +0100)
This patch cleanups below cppcheck warning.
sound/soc/soc-pcm.c:631:9: style: The scope of the variable 'r' can be reduced. [variableScope]
int i, r, ret = 0;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87sg00zf2l.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-pcm.c
b/sound/soc/soc-pcm.c
index
c2533ba
..
60e3f38
100644
(file)
--- a/
sound/soc/soc-pcm.c
+++ b/
sound/soc/soc-pcm.c
@@
-633,10
+633,10
@@
static int soc_pcm_components_close(struct snd_pcm_substream *substream,
{
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct snd_soc_component *component;
- int i, r
, r
et = 0;
+ int i, ret = 0;
for_each_rtd_components(rtd, i, component) {
- r = snd_soc_component_close(component, substream, rollback);
+
int
r = snd_soc_component_close(component, substream, rollback);
if (r < 0)
ret = r; /* use last ret */