From: Roel Kluin Date: Fri, 5 Jun 2009 10:54:44 +0000 (+0200) Subject: irda: smsc wait count reaches -1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adbf7f01e78287701c0270a5262f319935d94082;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git irda: smsc wait count reaches -1 The sir retries count reaches -1 rather than 0. Signed-off-by: Roel Kluin Signed-off-by: Samuel Ortiz Signed-off-by: Andrew Morton --- 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__); }