X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Ftty%2Fserial%2Fserial_core.c;h=1a5fbf7ab347d76c54dbca2704755d19ef58ddfb;hb=e359a4e38d229d53e28905863a1fabf41debd591;hp=3e08df52d68de65b8596eb4d0e22960902832f5e;hpb=5fda7a0e715c32c6dd9a39ebce8429eeafb64b7d;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 3e08df52d68d..1a5fbf7ab347 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -1583,14 +1583,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp) (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0; tty_port_tty_set(port, tty); - /* - * If the port is in the middle of closing, bail out now. - */ - if (tty_hung_up_p(filp)) { - retval = -EAGAIN; - goto err_dec_count; - } - /* * Start up the serial port. */