[ALSA] pcm_native: fix sparse warning about shadowing 'state' symbol

Previous thread: [ALSA] hda-codec - Add ALC889/ALC267/ALC269 support by Linux Kernel Mailing List on Thursday, January 31, 2008 - 8:01 pm. (1 message)

Next thread: [ALSA] sb16 - Suppress compile warning by Linux Kernel Mailing List on Thursday, January 31, 2008 - 8:01 pm. (1 message)
To: <git-commits-head@...>
Date: Thursday, January 31, 2008 - 8:01 pm

Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=c...
Commit: b05e578740b5e58b729857321048c4babb24bf2b
Parent: cd0b4ac839529e0f458e83946f49f3f30b7b5be8
Author: Marcin Ślusarz <marcin.slusarz@gmail.com>
AuthorDate: Fri Dec 14 12:50:16 2007 +0100
Committer: Jaroslav Kysela <perex@perex.cz>
CommitDate: Thu Jan 31 17:29:35 2008 +0100

[ALSA] pcm_native: fix sparse warning about shadowing 'state' symbol

pcm_native: fix sparse warning about shadowing 'state' symbol

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
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 51294dd..7fb7c92 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;
-

Previous thread: [ALSA] hda-codec - Add ALC889/ALC267/ALC269 support by Linux Kernel Mailing List on Thursday, January 31, 2008 - 8:01 pm. (1 message)

Next thread: [ALSA] sb16 - Suppress compile warning by Linux Kernel Mailing List on Thursday, January 31, 2008 - 8:01 pm. (1 message)