ALSA: emu10k1 - off by 1 in snd_emu10k1_wait()

With `while (count++ < 16384)' count reaches 16385.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Roel Kluin 2009-04-16 23:54:04 +02:00 committed by Takashi Iwai
parent 0882e8dd3a
commit 5a47fa3d30

View File

@ -490,7 +490,7 @@ void snd_emu10k1_wait(struct snd_emu10k1 *emu, unsigned int wait)
if (newtime != curtime)
break;
}
if (count >= 16384)
if (count > 16384)
break;
curtime = newtime;
}