diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-02-05 16:08:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 13:00:48 -0700 |
commit | 19ffd68f816878aed456d5e87697f43bd9e3bd2b (patch) | |
tree | 4945cdfab372d0b5d5a672a07d6da60c89f18f00 /drivers/tty/pty.c | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) | |
download | blackbird-op-linux-19ffd68f816878aed456d5e87697f43bd9e3bd2b.tar.gz blackbird-op-linux-19ffd68f816878aed456d5e87697f43bd9e3bd2b.zip |
pty: Remove redundant itty reset
port->itty has already been reset by release_tty() before
pty_cleanup() is called.
Call stack:
release_tty()
tty_kref_put()
queue_release_one_tty()
release_one_tty() : workqueue
tty->ops->cleanup()
pty_cleanup()
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r-- | drivers/tty/pty.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index c24b4db243b9..71e456aa6367 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c @@ -413,7 +413,6 @@ static void pty_unix98_shutdown(struct tty_struct *tty) static void pty_cleanup(struct tty_struct *tty) { - tty->port->itty = NULL; tty_port_put(tty->port); } |