tty: Remove tty_hung_up_p() tests from tty drivers' open()
[firefly-linux-kernel-4.4.55.git] / drivers / tty / serial / serial_core.c
index 3e08df52d68de65b8596eb4d0e22960902832f5e..1a5fbf7ab347d76c54dbca2704755d19ef58ddfb 100644 (file)
@@ -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.
         */