Skip to content

Commit

Permalink
ASoC: count reaches 10001, not 10000.
Browse files Browse the repository at this point in the history
With a postfix increment count reaches 10001, not 10000.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Roel Kluin authored and Mark Brown committed Feb 8, 2009
1 parent 8f0dc65 commit 67137a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/blackfin/bf5xx-ad73311.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int snd_ad73311_configure(void)
SSYNC();

/* When TUVF is set, the data is already send out */
while (!(status & TUVF) && count++ < 10000) {
while (!(status & TUVF) && ++count < 10000) {
udelay(1);
status = bfin_read_SPORT_STAT();
SSYNC();
Expand All @@ -123,7 +123,7 @@ static int snd_ad73311_configure(void)
SSYNC();
local_irq_enable();

if (count == 10000) {
if (count >= 10000) {
printk(KERN_ERR "ad73311: failed to configure codec\n");
return -1;
}
Expand Down

0 comments on commit 67137a5

Please sign in to comment.