tty: Consolidate noctty checks in tty_open()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:52 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000 (14:28 -0800)
commit11e1d4aa4da1d0572b00f040ae91da85d3474f4a
treea6d0d89a51135068138156a67f8be85201ead940
parentc2bb524b2e1a6eddae65139601bee24cb60856a0
tty: Consolidate noctty checks in tty_open()

Evaluate the conditions which prevent this tty being the controlling
terminal in one place, just before setting the controlling terminal.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c