diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-03-11 21:44:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-19 00:44:02 +0100 |
commit | d912156605b0eb3b3070dc7eabc43db6379aa43b (patch) | |
tree | ac7fb32024a2e11ae94ee14401c652fc427ff2b2 /drivers/tty/tty_io.c | |
parent | n_tty: Fully initialize ldisc before restarting buffer work (diff) | |
download | linux-d912156605b0eb3b3070dc7eabc43db6379aa43b.tar.xz linux-d912156605b0eb3b3070dc7eabc43db6379aa43b.zip |
tty: Don't reenable already enabled ldisc
tty_ldisc_hangup() guarantees the ldisc is enabled (or that there
is no ldisc). Since __tty_hangup() was the only user, re-define
tty_ldisc_enable() in file-scope.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index d3ddb31e363e..e6ee0f459a20 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -693,7 +693,6 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session) */ set_bit(TTY_HUPPED, &tty->flags); clear_bit(TTY_HUPPING, &tty->flags); - tty_ldisc_enable(tty); tty_unlock(tty); |