[PATCH 33/58] serial/f81534: Don't check port->sysrq

From: Dmitry Safonov
Date: Thu Dec 12 2019 - 19:10:48 EST


usb_serial_handle_sysrq_char() already checks it.

Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>
---
drivers/usb/serial/f81534.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/serial/f81534.c b/drivers/usb/serial/f81534.c
index 2b39bda035c7..67a8e343eba1 100644
--- a/drivers/usb/serial/f81534.c
+++ b/drivers/usb/serial/f81534.c
@@ -1238,10 +1238,8 @@ static void f81534_process_per_serial_block(struct usb_serial_port *port,
schedule_work(&port_priv->lsr_work);
}

- if (port->port.console && port->sysrq) {
- if (usb_serial_handle_sysrq_char(port, data[i]))
- continue;
- }
+ if (usb_serial_handle_sysrq_char(port, data[i]))
+ continue;

tty_insert_flip_char(&port->port, data[i], tty_flag);
}
--
2.24.0