In commit a78233959f79 ("tty: serial: linflexuart: UART support for FIFO with DMA"), the second param of linflex_console_putchar() has been updated to "unsigned char" to compatible with v6.1 kernel, then the ich variable in linflex_poll_putchar() is not needed anymore, so drop it.
Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com> --- drivers/tty/serial/fsl_linflexuart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index b092c93df472..1b518808dcf4 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -1204,7 +1204,6 @@ static int linflex_poll_init(struct uart_port *port) static void linflex_poll_putchar(struct uart_port *port, unsigned char ch) { - int ich = ch; unsigned long flags; struct linflex_port *sport = container_of(port, struct linflex_port, port); @@ -1216,7 +1215,7 @@ static void linflex_poll_putchar(struct uart_port *port, unsigned char ch) linflex_poll_init(port); } - linflex_console_putchar(port, ich); + linflex_console_putchar(port, ch); spin_unlock_irqrestore(&sport->port.lock, flags); } -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12755): https://lists.yoctoproject.org/g/linux-yocto/message/12755 Mute This Topic: https://lists.yoctoproject.org/mt/99519835/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-