Skip to content

Commit

Permalink
irda: smsc wait count reaches -1
Browse files Browse the repository at this point in the history
The sir retries count reaches -1 rather than 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Roel Kluin authored and Samuel Ortiz committed Jun 12, 2009
1 parent d510fe7 commit adbf7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/smsc-ircc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ static void smsc_ircc_sir_wait_hw_transmitter_finish(struct smsc_ircc_cb *self)
while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT))
udelay(1);

if (count == 0)
if (count < 0)
IRDA_DEBUG(0, "%s(): stuck transmitter\n", __func__);
}

Expand Down

0 comments on commit adbf7f0

Please sign in to comment.