commit | 7ffb6da93c383a71b7f2d29d70cd420faa1ddeee | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Wed Nov 05 12:13:00 2014 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Nov 05 18:44:43 2014 -0800 |
tree | 8468e693d64e8da711e78a9916b09d9fde817397 | |
parent | 359b9fb5c4f0d49f7062356f55073a169f36e29d [diff] |
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 <alan@linux.intel.com> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>