]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
tty: Remove extra wakeup from pty write() path
[karo-tx-linux.git] / drivers / tty / pty.c
index b38a28bd95116fd916fc3e685e270887ed59139e..b940127ba1c89a1895ccc73e4e506beae5e88875 100644 (file)
@@ -121,10 +121,8 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c)
                /* Stuff the data into the input queue of the other end */
                c = tty_insert_flip_string(to->port, buf, c);
                /* And shovel */
-               if (c) {
+               if (c)
                        tty_flip_buffer_push(to->port);
-                       tty_wakeup(tty);
-               }
        }
        return c;
 }