]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/serial/serial_lh7a40x.c
[PATCH] TTY layer buffering revamp
[mirror_ubuntu-bionic-kernel.git] / drivers / serial / serial_lh7a40x.c
index d01dbe5da3b96d395caf8c83a9b923d1325833a8..d4a1f0e798c1bc461f737ec343e92d196608183f 100644 (file)
@@ -148,15 +148,6 @@ lh7a40xuart_rx_chars (struct uart_port* port)
        unsigned int data, flag;/* Received data and status */
 
        while (!(UR (port, UART_R_STATUS) & nRxRdy) && --cbRxMax) {
-               if (tty->flip.count >= TTY_FLIPBUF_SIZE) {
-                       if (tty->low_latency)
-                               tty_flip_buffer_push(tty);
-                       /*
-                        * If this failed then we will throw away the
-                        * bytes but must do so to clear interrupts
-                        */
-               }
-
                data = UR (port, UART_R_DATA);
                flag = TTY_NORMAL;
                ++port->icount.rx;