1
0
mirror of https://github.com/sjlongland/adv950.git synced 2025-09-13 10:43:14 +10:00

serial_core: Drop refrences to tty_locked

As per 906cbe1364d94da7cbf74c1d05e3e78b2883f661.
This commit is contained in:
Stuart Longland 2017-03-05 11:24:29 +10:00
parent 7196e3f54d
commit 270fd28af7
Signed by: stuartl
GPG Key ID: 4DFA191410BDE3B7

View File

@ -1244,8 +1244,6 @@ static void uart_close(struct tty_struct *tty, struct file *filp)
struct uart_port *uport;
unsigned long flags;
BUG_ON(!tty_locked());
if (!state)
return;
@ -1426,7 +1424,6 @@ static void uart_hangup(struct tty_struct *tty)
struct tty_port *port = &state->port;
unsigned long flags;
BUG_ON(!tty_locked());
pr_debug("uart_hangup(%d)\n", state->uart_port->line);
mutex_lock(&port->mutex);
@ -1513,7 +1510,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
struct tty_port *port;
int retval, line = tty->index;
BUG_ON(!tty_locked());
pr_debug("uart_open(%d) called\n", line);
/*