From: Peter Hurley Date: Wed, 5 Nov 2014 17:13:00 +0000 (-0500) Subject: tty: Simplify tty_release() state checks X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ffb6da93c383a71b7f2d29d70cd420faa1ddeee;p=pandora-kernel.git tty: Simplify tty_release() state checks The local o_tty variable in tty_release() is now accessed only when closing the pty master. Set o_tty to slave pty when closing pty master, otherwise NULL; use o_tty != NULL as replacement for pty_master. Reviewed-by: Alan Cox Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed