projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c757790
)
ASoC: soc-component: cleanup cppcheck warning at snd_soc_pcm_component_pm_runtime_get()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 16 Aug 2021 04:56:19 +0000
(13:56 +0900)
committer
Mark Brown
<broonie@kernel.org>
Mon, 16 Aug 2021 12:29:35 +0000
(13:29 +0100)
This patch cleanups below cppcheck warning.
sound/soc/soc-component.c:1183:9: style: The scope of the variable 'ret' can be reduced. [variableScope]
int i, ret;
^
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87sfzayolo.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-component.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-component.c
b/sound/soc/soc-component.c
index c8dfd0de30e4f35aad75fc0297c693345acd12c0..8e8d917d22f8ffe9a982642f03a27be6335ae91e 100644
(file)
--- a/
sound/soc/soc-component.c
+++ b/
sound/soc/soc-component.c
@@
-1171,10
+1171,10
@@
int snd_soc_pcm_component_pm_runtime_get(struct snd_soc_pcm_runtime *rtd,
void *stream)
{
struct snd_soc_component *component;
- int i
, ret
;
+ int i;
for_each_rtd_components(rtd, i, component) {
- ret = pm_runtime_get_sync(component->dev);
+
int
ret = pm_runtime_get_sync(component->dev);
if (ret < 0 && ret != -EACCES) {
pm_runtime_put_noidle(component->dev);
return soc_component_ret(component, ret);