Skip to content

Commit

Permalink
proc: remove proc_tty_ldisc variable
Browse files Browse the repository at this point in the history
/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.

[[email protected]: add comment]
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and torvalds committed Aug 8, 2014
1 parent 4dcc03f commit 849d20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/proc/proc_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/*
* 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
Expand Down Expand Up @@ -176,7 +176,7 @@ void __init proc_tty_init(void)
{
if (!proc_mkdir("tty", NULL))
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
* serial links which is just too easy to abuse for inferring
Expand Down

0 comments on commit 849d20a

Please sign in to comment.