Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: liteuart: simplify passing of uart_insert_char() flag

Simply provide the hard-coded TTY_NORMAL flag to uart_insert_char()
directly -- no need to dedicate a variable for that exclusive purpose.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-9-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gabriel Somlo and committed by
Greg Kroah-Hartman
ca538cc7 77126884

+1 -2
+1 -2
drivers/tty/serial/liteuart.c
··· 73 73 struct liteuart_port *uart = from_timer(uart, t, timer); 74 74 struct uart_port *port = &uart->port; 75 75 unsigned char __iomem *membase = port->membase; 76 - unsigned int flg = TTY_NORMAL; 77 76 int ch; 78 77 unsigned long status; 79 78 ··· 85 86 86 87 /* no overflow bits in status */ 87 88 if (!(uart_handle_sysrq_char(port, ch))) 88 - uart_insert_char(port, status, 0, ch, flg); 89 + uart_insert_char(port, status, 0, ch, TTY_NORMAL); 89 90 } 90 91 91 92 tty_flip_buffer_push(&port->state->port);