tty: Remove tty_hung_up_p() tests from tty drivers' open()
[firefly-linux-kernel-4.4.55.git] / drivers / char / pcmcia / synclink_cs.c
index 8320abd1ef1473ddfda6820c8a6bcaa689f73824..a63970f7696745c1e310a37dec5626cc4844150a 100644 (file)
@@ -2510,7 +2510,7 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
                         __FILE__, __LINE__, tty->driver->name, port->count);
 
        /* If port is closing, signal caller to try again */
-       if (tty_hung_up_p(filp) || port->flags & ASYNC_CLOSING){
+       if (port->flags & ASYNC_CLOSING){
                wait_event_interruptible_tty(tty, port->close_wait,
                                             !(port->flags & ASYNC_CLOSING));
                retval = ((port->flags & ASYNC_HUP_NOTIFY) ?