From: Roel Kluin Date: Wed, 25 Feb 2009 12:40:26 +0000 (+0100) Subject: ALSA: snd-powermac: timeout reaches -1 X-Git-Tag: v2.6.30-rc1~676^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39661758631da37efbc961e57a4ddefad573cc52;p=profile%2Fivi%2Fkernel-x86-ivi.git ALSA: snd-powermac: timeout reaches -1 If unsuccessful, timeout reaches -1 after the loop. Signed-off-by: Roel Kluin Signed-off-by: Takashi Iwai --- diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c index f860d39..45a7629 100644 --- a/sound/ppc/burgundy.c +++ b/sound/ppc/burgundy.c @@ -35,7 +35,7 @@ snd_pmac_burgundy_busy_wait(struct snd_pmac *chip) int timeout = 50; while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) udelay(1); - if (! timeout) + if (timeout < 0) printk(KERN_DEBUG "burgundy_busy_wait: timeout\n"); }