PM / devfreq: rk3399_dmc: initialize min_freq and max_freq
[firefly-linux-kernel-4.4.55.git] / drivers / tty / cyclades.c
index 87f6578c6f4a389fbad842aebe9077d1577bab3a..d4a1331675ed5d69a3be971f91ceb59f27e0dbee 100644 (file)
@@ -1576,15 +1576,6 @@ static int cy_open(struct tty_struct *tty, struct file *filp)
                current->pid, info->port.count);
 #endif
 
-       /*
-        * If the port is the middle of closing, bail out now
-        */
-       if (info->port.flags & ASYNC_CLOSING) {
-               wait_event_interruptible_tty(tty, info->port.close_wait,
-                               !(info->port.flags & ASYNC_CLOSING));
-               return (info->port.flags & ASYNC_HUP_NOTIFY) ? -EAGAIN: -ERESTARTSYS;
-       }
-
        /*
         * Start up serial port
         */