diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-06-11 06:23:31 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-07-20 05:11:27 -0400 |
commit | 1c3973240b94a48766b7bfe743a4fcaad4eab3eb (patch) | |
tree | 449a2c3eb3b1beb30d9c1f9648e91ec0c5d381b0 /sound | |
parent | 13d457094bc364e942884266036fd1b2ab74308b (diff) |
[ALSA] ali5451 warning fix
sound/pci/ali5451/ali5451.c: In function 'snd_ali_prepare':
sound/pci/ali5451/ali5451.c:716: warning: 'R2' may be used uninitialized in this function
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/ali5451/ali5451.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index e2c8666e06ad..05b4c8696941 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -731,8 +731,7 @@ static void snd_ali_detect_spdif_rate(struct snd_ali *codec) | |||
731 | return; | 731 | return; |
732 | } | 732 | } |
733 | 733 | ||
734 | count = 0; | 734 | for (count = 0; count <= 50000; count++) { |
735 | while (count++ <= 50000) { | ||
736 | snd_ali_delay(codec, 6); | 735 | snd_ali_delay(codec, 6); |
737 | bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); | 736 | bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); |
738 | R2 = bval & 0x1F; | 737 | R2 = bval & 0x1F; |