[CRIU] [PATCH] tty: Drop TTY_SUBTYPE_SLAVE from /dev/console and /dev/tty

Cyrill Gorcunov gorcunov at gmail.com
Thu Apr 2 10:17:29 PDT 2015


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

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---

On top of the whole series.

 tty.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tty.c b/tty.c
index 0bbd758f80e3..f7dbaf96782c 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,
-- 
1.9.3



More information about the CRIU mailing list