lkml.org 
[lkml]   [2019]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 33/58] serial/f81534: Don't check port->sysrq
Date
usb_serial_handle_sysrq_char() already checks it.

Signed-off-by: Dmitry Safonov <dima@arista.com>
---
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
\
 
 \ /
  Last update: 2019-12-13 01:11    [W:0.031 / U:26.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site