projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf08fd
)
serial: fsl_lpuart: use UARTDATA_MASK macro
author
Michael Walle
<michael@walle.cc>
Wed, 12 May 2021 14:12:48 +0000
(16:12 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:08:26 +0000
(16:08 +0200)
Use the corresponding macro instead of the magic number. While at it,
drop the useless cast to "unsigned char".
Signed-off-by: Michael Walle <michael@walle.cc>
Link:
https://lore.kernel.org/r/20210512141255.18277-3-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/fsl_lpuart.c
b/drivers/tty/serial/fsl_lpuart.c
index 120527cb8a819b75bec7ac8c50e1f941fd649f42..cabfc1c5d7014011ae14d34fda7907140d67642a 100644
(file)
--- a/
drivers/tty/serial/fsl_lpuart.c
+++ b/
drivers/tty/serial/fsl_lpuart.c
@@
-928,9
+928,9
@@
static void lpuart32_rxint(struct lpuart_port *sport)
*/
sr = lpuart32_read(&sport->port, UARTSTAT);
rx = lpuart32_read(&sport->port, UARTDATA);
- rx &=
0x3ff
;
+ rx &=
UARTDATA_MASK
;
- if (uart_handle_sysrq_char(&sport->port,
(unsigned char)
rx))
+ if (uart_handle_sysrq_char(&sport->port, rx))
continue;
if (sr & (UARTSTAT_PE | UARTSTAT_OR | UARTSTAT_FE)) {