From eff0a31d4b08797197718d2ecfa34f5f088e085c Mon Sep 17 00:00:00 2001 From: Dmitry Safonov Date: Fri, 13 Dec 2019 00:06:29 +0000 Subject: [PATCH] tty/serial: pmac_zilog: Don't check port->sysrq uart_handle_sysrq_char() already handles it. Signed-off-by: Dmitry Safonov Link: https://lore.kernel.org/r/20191213000657.931618-31-dima@arista.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/pch_uart.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index c625bf7b8a929..0a96217dba678 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c @@ -584,10 +584,8 @@ static int pch_uart_hal_read(struct eg20t_port *priv, unsigned char *buf, if (uart_handle_break(port)) continue; } - if (port->sysrq) { - if (uart_handle_sysrq_char(port, rbr)) - continue; - } + if (uart_handle_sysrq_char(port, rbr)) + continue; buf[i++] = rbr; } -- 2.30.2