diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-06-05 12:54:44 +0200 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2009-06-13 01:56:06 +0200 |
commit | adbf7f01e78287701c0270a5262f319935d94082 (patch) | |
tree | a320b9e67518c2fb9f37d37ee974ed58c10bb342 /drivers/net/irda | |
parent | d510fe70db4c62ac899c486506fdfb7f3b518c86 (diff) |
irda: smsc wait count reaches -1
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>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/smsc-ircc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c index 59d79807b4d5..d0797adb5f8e 100644 --- a/drivers/net/irda/smsc-ircc2.c +++ b/drivers/net/irda/smsc-ircc2.c @@ -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__); } |