Merge branch 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel...
[pandora-kernel.git] / drivers / net / irda / smsc-ircc2.c
index 59d7980..d0797ad 100644 (file)
@@ -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__);
 }