diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-02-25 15:40:26 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-09 16:58:37 +0300 |
commit | 39661758631da37efbc961e57a4ddefad573cc52 (patch) | |
tree | c9355d9e0e2488f37968dcc14d16aafce780cec6 | |
parent | 6da6711385165eff76411b77974eec13c5ef6486 (diff) | |
download | linux-39661758631da37efbc961e57a4ddefad573cc52.tar.xz |
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>
-rw-r--r-- | sound/ppc/burgundy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c index f860d39af36b..45a76297c38d 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"); } |