aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-06-05 06:54:44 -0400
committerSamuel Ortiz <samuel@sortiz.org>2009-06-12 19:56:06 -0400
commitadbf7f01e78287701c0270a5262f319935d94082 (patch)
treea320b9e67518c2fb9f37d37ee974ed58c10bb342 /drivers/net/irda
parentd510fe70db4c62ac899c486506fdfb7f3b518c86 (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.c2
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)
2124 while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT)) 2124 while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT))
2125 udelay(1); 2125 udelay(1);
2126 2126
2127 if (count == 0) 2127 if (count < 0)
2128 IRDA_DEBUG(0, "%s(): stuck transmitter\n", __func__); 2128 IRDA_DEBUG(0, "%s(): stuck transmitter\n", __func__);
2129} 2129}
2130 2130