]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/dz.c
lt2p: Fix possible WARN_ON from socket code when UDP socket is closed
[linux-2.6-omap-h63xx.git] / drivers / serial / dz.c
index 116211fcd36fc196ff12de4aeb36ee8e6194031f..0dddd68b20d27de2dd4e5a8802e4931e954f493b 100644 (file)
@@ -819,7 +819,7 @@ static void dz_console_putchar(struct uart_port *uport, int ch)
                dz_out(dport, DZ_TCR, mask);
                iob();
                udelay(2);
-       } while (loops--);
+       } while (--loops);
 
        if (loops)                              /* Cannot send otherwise. */
                dz_out(dport, DZ_TDR, ch);