tty: Drop TTY_SUBTYPE_SLAVE from /dev/console and /dev/tty

They are confusing code readers. Lets save these @subtypes
for Unix98 pty peers where they are really important.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2015-04-02 20:17:29 +03:00 committed by Pavel Emelyanov
parent 79ca3eec37
commit 4fd669fca6

2
tty.c
View file

@ -182,7 +182,6 @@ static int open_simple_tty(struct tty_info *info);
static struct tty_driver console_driver = {
.type = TTY_TYPE__CONSOLE,
.subtype = TTY_SUBTYPE_SLAVE,
.name = "console",
.index = CONSOLE_INDEX,
.open = open_simple_tty,
@ -190,7 +189,6 @@ static struct tty_driver console_driver = {
static struct tty_driver ctty_driver = {
.type = TTY_TYPE__CTTY,
.subtype = TTY_SUBTYPE_SLAVE,
.name = "ctty",
.index = CTTY_INDEX,
.open = open_simple_tty,