Commit 1c397324 authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 13d45709
...@@ -731,8 +731,7 @@ static void snd_ali_detect_spdif_rate(struct snd_ali *codec) ...@@ -731,8 +731,7 @@ static void snd_ali_detect_spdif_rate(struct snd_ali *codec)
return; return;
} }
count = 0; for (count = 0; count <= 50000; count++) {
while (count++ <= 50000) {
snd_ali_delay(codec, 6); snd_ali_delay(codec, 6);
bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1));
R2 = bval & 0x1F; R2 = bval & 0x1F;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment