* [PATCH] pcm_native: fix sparse warning about shadowing 'state' symbol
@ 2007-12-08 20:37 Marcin Ślusarz
0 siblings, 0 replies; only message in thread
From: Marcin Ślusarz @ 2007-12-08 20:37 UTC (permalink / raw)
To: perex; +Cc: linux-kernel
pcm_native: fix sparse warning about shadowing 'state' symbol
Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
---
sound/core/pcm_native.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index fb3dde4..925f0b6 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -1395,10 +1395,10 @@ static int snd_pcm_do_drain_init(struct snd_pcm_substream *substream, int state)
} else {
/* stop running stream */
if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) {
- int state = snd_pcm_capture_avail(runtime) > 0 ?
+ int new_state = snd_pcm_capture_avail(runtime) > 0 ?
SNDRV_PCM_STATE_DRAINING : SNDRV_PCM_STATE_SETUP;
- snd_pcm_do_stop(substream, state);
- snd_pcm_post_stop(substream, state);
+ snd_pcm_do_stop(substream, new_state);
+ snd_pcm_post_stop(substream, new_state);
}
}
return 0;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-08 20:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-08 20:37 [PATCH] pcm_native: fix sparse warning about shadowing 'state' symbol Marcin Ślusarz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox