From: Ilpo Järvinen Date: Wed, 19 Oct 2022 09:11:37 +0000 (+0300) Subject: serial: sccnxp: Use uart_xmit_advance() X-Git-Tag: v6.2-rc1~68^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ea03c021dcceac88bbb38f7b67bc08d23c80c84;p=thirdparty%2Fkernel%2Flinux.git serial: sccnxp: Use uart_xmit_advance() Take advantage of the new uart_xmit_advance() helper. Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20221019091151.6692-31-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index dd98509f52e5a..7df6878226340 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c @@ -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)