Bladeren bron

ALSA: snd-powermac: timeout reaches -1

If unsuccessful, timeout reaches -1 after the loop.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Roel Kluin 16 jaren geleden
bovenliggende
commit
3966175863
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      sound/ppc/burgundy.c

+ 1 - 1
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");
 }