tty: Remove redundant tty_wait_until_sent()
[firefly-linux-kernel-4.4.55.git] / drivers / tty / tty_ldisc.c
index 4e46c1721b9d4ca6309659bb997fe24ea2dfd4c6..1afe192bef6a7e8a795c91a3cf38a26615b6f2a1 100644 (file)
@@ -625,15 +625,6 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc)
                return 0;
        }
 
-       tty_unlock(tty);
-       /*
-        *      Problem: What do we do if this blocks ?
-        *      We could deadlock here
-        */
-
-       tty_wait_until_sent(tty, 0);
-
-       tty_lock(tty);
        mutex_lock(&tty->ldisc_mutex);
 
        /*