From: Peter Hurley Date: Tue, 5 Feb 2013 21:08:50 +0000 (-0500) Subject: pty: Remove redundant itty reset X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=19ffd68f816878aed456d5e87697f43bd9e3bd2b;p=deliverable%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); }