From: Peter Hurley Date: Tue, 17 Sep 2013 16:53:34 +0000 (-0400) Subject: n_tty: Remove superfluous reader wakeup X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1cb40d08726468602389c9a7ec345af5ade99775;p=deliverable%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index c9a9ddd1d0bc..41c0c80094a5 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) ||