summaryrefslogtreecommitdiff
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-09-17 16:53:34 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 00:55:11 (GMT)
commit1cb40d08726468602389c9a7ec345af5ade99775 (patch)
treecd7f9337eab4b99a26bca91335f5a577898e50fe /drivers/tty/n_tty.c
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
downloadlinux-1cb40d08726468602389c9a7ec345af5ade99775.tar.xz
n_tty: Remove superfluous reader wakeup
n_tty's .set_termios method unconditionally performs reader wakeup; remove extra reader wakeup for canonical mode changes. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r--drivers/tty/n_tty.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index c9a9ddd..41c0c80 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -1764,9 +1764,6 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
ldata->lnext = 0;
}
- if (canon_change && !L_ICANON(tty) && read_cnt(ldata))
- wake_up_interruptible(&tty->read_wait);
-
ldata->icanon = (L_ICANON(tty) != 0);
if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||