Commit 849d20a1 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

proc: remove proc_tty_ldisc variable

/proc/tty/ldisc appear to be unused as a directory and
it had been always that way.

But it is userspace visible thing.

Cowardly remove only in-kernel variable holding it.

[akpm@linux-foundation.org: add comment]
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4dcc03fc
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
/* /*
* The /proc/tty directory inodes... * The /proc/tty directory inodes...
*/ */
static struct proc_dir_entry *proc_tty_ldisc, *proc_tty_driver; static struct proc_dir_entry *proc_tty_driver;
/* /*
* This is the handler for /proc/tty/drivers * This is the handler for /proc/tty/drivers
...@@ -176,7 +176,7 @@ void __init proc_tty_init(void) ...@@ -176,7 +176,7 @@ void __init proc_tty_init(void)
{ {
if (!proc_mkdir("tty", NULL)) if (!proc_mkdir("tty", NULL))
return; return;
proc_tty_ldisc = proc_mkdir("tty/ldisc", NULL); proc_mkdir("tty/ldisc", NULL); /* Preserved: it's userspace visible */
/* /*
* /proc/tty/driver/serial reveals the exact character counts for * /proc/tty/driver/serial reveals the exact character counts for
* serial links which is just too easy to abuse for inferring * serial links which is just too easy to abuse for inferring
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment