UM: TTY: fix build errors now that tty->raw is gone
authorJiri Slaby <jslaby@suse.cz>
Thu, 25 Oct 2012 14:40:59 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 21:03:10 +0000 (14:03 -0700)
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/um/drivers/chan_kern.c

index c3bba73e4be6d88be5d813d94dcdf01eb2ef4857..e9a0abc6a32f334254dc3b07c26ec526ad4a6637 100644 (file)
@@ -83,21 +83,8 @@ static const struct chan_ops not_configged_ops = {
 
 static void tty_receive_char(struct tty_struct *tty, char ch)
 {
-       if (tty == NULL)
-               return;
-
-       if (I_IXON(tty) && !I_IXOFF(tty) && !tty->raw) {
-               if (ch == STOP_CHAR(tty)) {
-                       stop_tty(tty);
-                       return;
-               }
-               else if (ch == START_CHAR(tty)) {
-                       start_tty(tty);
-                       return;
-               }
-       }
-
-       tty_insert_flip_char(tty, ch, TTY_NORMAL);
+       if (tty)
+               tty_insert_flip_char(tty, ch, TTY_NORMAL);
 }
 
 static int open_one_chan(struct chan *chan)