]> Git Repo - linux.git/blobdiff - drivers/tty/serial/sccnxp.c
block: add a sanity check for non-write flush/fua bios
[linux.git] / drivers / tty / serial / sccnxp.c
index dd98509f52e5a866e175f87de8b1723d0b1eafb2..7df6878226340d263528e06eea0b925f79abaf4e 100644 (file)
@@ -468,8 +468,7 @@ static void sccnxp_handle_tx(struct uart_port *port)
                        break;
 
                sccnxp_port_write(port, SCCNXP_THR_REG, xmit->buf[xmit->tail]);
-               xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
-               port->icount.tx++;
+               uart_xmit_advance(port, 1);
        }
 
        if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
This page took 0.034304 seconds and 4 git commands to generate.