From: Peter Hurley Date: Tue, 5 Feb 2013 21:08:50 +0000 (-0500) Subject: pty: Remove redundant itty reset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19ffd68f816878aed456d5e87697f43bd9e3bd2b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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); }