sysctl: simplify the pty sysctl logic
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 18 Oct 2007 10:05:31 +0000 (03:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:23 +0000 (14:37 -0700)
commit35834ca1e4bda56d252aa2024a283d631f0e5ac6
tree4f73a27db7de4ced7b39907fe958498a3ff7ef4b
parent25398a158d86b993fa5bf36f5a6752134b584d60
sysctl: simplify the pty sysctl logic

Instead of having a bunch of ifdefs in sysctl.c move all of the pty sysctl
logic into drivers/char/pty.c

As well as cleaning up the logic this prevents sysctl_check_table from
complaining that the root table has a NULL data pointer on something with
generic methods.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/pty.c
kernel/sysctl.c