OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ec63e
)
serial: omap-serial: remove flag from serial_omap_rdi()
author
Jiri Slaby
<jirislaby@kernel.org>
Wed, 12 Jul 2023 08:18:10 +0000
(10:18 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 17:21:04 +0000
(19:21 +0200)
The local 'flag' variable carries only TTY_NORMAL. So use that constant
directly and drop the variable.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link:
https://lore.kernel.org/r/20230712081811.29004-10-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/omap-serial.c
b/drivers/tty/serial/omap-serial.c
index
82d35db
..
16ab7ea
100644
(file)
--- a/
drivers/tty/serial/omap-serial.c
+++ b/
drivers/tty/serial/omap-serial.c
@@
-499,7
+499,6
@@
static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr)
static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr)
{
unsigned char ch = 0;
- unsigned int flag;
if (!(lsr & UART_LSR_DR))
return;
@@
-512,13
+511,12
@@
static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr)
return;
}
- flag = TTY_NORMAL;
up->port.icount.rx++;
if (uart_handle_sysrq_char(&up->port, ch))
return;
- uart_insert_char(&up->port, lsr, UART_LSR_OE, ch,
flag
);
+ uart_insert_char(&up->port, lsr, UART_LSR_OE, ch,
TTY_NORMAL
);
}
/**