From 4fd669fca62e109af0f49ad87991ca57ce01d55d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 2 Apr 2015 20:17:29 +0300 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- tty.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tty.c b/tty.c index 0bbd758f8..f7dbaf967 100644 --- a/tty.c +++ b/tty.c @@ -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,