summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ldisc.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-06-15 15:14:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 01:42:59 +0200
commit3b80df7ca7e2fec76be2eda304cc7e0eb90f911d (patch)
treec3f50fa148d5cd9e77f66d0f02666396bcd51178 /drivers/tty/tty_ldisc.c
parenttty: Clarify multiple-references comment in TIOCSETD ioctl (diff)
downloadlinux-3b80df7ca7e2fec76be2eda304cc7e0eb90f911d.tar.xz
linux-3b80df7ca7e2fec76be2eda304cc7e0eb90f911d.zip
tty: Don't change receive_room for ioctl(TIOCSETD)
tty_set_ldisc() is guaranteed exclusive use of the line discipline by tty_ldisc_lock_pair_timeout(); shutting off input by resetting receive_room is unnecessary. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ldisc.c')
-rw-r--r--drivers/tty/tty_ldisc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index 75fa99978348..e52d61573553 100644
--- a/drivers/tty/tty_ldisc.c
+++ b/drivers/tty/tty_ldisc.c
@@ -540,9 +540,6 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc)
return 0;
}
- /* FIXME: why 'shutoff' input if the ldisc is locked? */
- tty->receive_room = 0;
-
old_ldisc = tty->ldisc;
tty_lock(tty);