ALSA: burgundy: timeout message is off by one.
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 3 Jun 2009 23:53:21 +0000 (01:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Jun 2009 22:10:41 +0000 (00:10 +0200)
Timeout message is off by one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ppc/burgundy.c

index 45a76297c38d2224abd7fee9b3994f04fd2b2dcf..d2c0a4e987ae5fa2fa1607acc678977f07292646 100644 (file)
@@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip)
        timeout = 50;
        while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
                udelay(1);
-       if (! timeout)
+       if (timeout < 0)
                printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n");
        timeout = 50;
        while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--)
                udelay(1);
-       if (! timeout)
+       if (timeout < 0)
                printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n");
 }