aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_tty.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2014-08-08 17:21:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 18:57:22 -0400
commit849d20a12822cba355c054ab0bfe490473413cce (patch)
tree6ed5f945281ec193286d3ad348df74e05d5d7652 /fs/proc/proc_tty.c
parent4dcc03fc4553943c8bae086aa826bb75171e82a1 (diff)
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: Alexey Dobriyan <adobriyan@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/proc_tty.c')
-rw-r--r--fs/proc/proc_tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c
index cb761f010300..15f327bed8c6 100644
--- a/fs/proc/proc_tty.c
+++ b/fs/proc/proc_tty.c
@@ -18,7 +18,7 @@
18/* 18/*
19 * The /proc/tty directory inodes... 19 * The /proc/tty directory inodes...
20 */ 20 */
21static struct proc_dir_entry *proc_tty_ldisc, *proc_tty_driver; 21static struct proc_dir_entry *proc_tty_driver;
22 22
23/* 23/*
24 * This is the handler for /proc/tty/drivers 24 * This is the handler for /proc/tty/drivers
@@ -176,7 +176,7 @@ void __init proc_tty_init(void)
176{ 176{
177 if (!proc_mkdir("tty", NULL)) 177 if (!proc_mkdir("tty", NULL))
178 return; 178 return;
179 proc_tty_ldisc = proc_mkdir("tty/ldisc", NULL); 179 proc_mkdir("tty/ldisc", NULL); /* Preserved: it's userspace visible */
180 /* 180 /*
181 * /proc/tty/driver/serial reveals the exact character counts for 181 * /proc/tty/driver/serial reveals the exact character counts for
182 * serial links which is just too easy to abuse for inferring 182 * serial links which is just too easy to abuse for inferring