Skip to content

Commit

Permalink
ALSA: snd-powermac: timeout reaches -1
Browse files Browse the repository at this point in the history
If unsuccessful, timeout reaches -1 after the loop.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
RoelKluin authored and tiwai committed Mar 9, 2009
1 parent 6da6711 commit 3966175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/ppc/burgundy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 3966175

Please sign in to comment.