summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-14 09:34:08 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 17:09:59 +0100
commitae836810263509ff7a3c2c021754ce6f66b3fab6 (patch)
treea6f3dee4ff6ccfb0eafdcddf43ae370d1ea0c8e5 /kernel/sysctl.c
parent[PATCH] sysctl: remove support for CTL_ANY (diff)
downloadlinux-ae836810263509ff7a3c2c021754ce6f66b3fab6.tar.xz
linux-ae836810263509ff7a3c2c021754ce6f66b3fab6.zip
[PATCH] sysctl: remove support for directory strategy routines
parse_table has support for calling a strategy routine when descending into a directory. To date no one has used this functionality and the /proc/sys interface has no analog to it. So no one is using this functionality kill it and make the binary sysctl code easier to follow. 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>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 48708a73852d..cb46d0156840 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1175,14 +1175,6 @@ repeat:
if (table->child) {
if (ctl_perm(table, 001))
return -EPERM;
- if (table->strategy) {
- error = table->strategy(
- table, name, nlen,
- oldval, oldlenp,
- newval, newlen);
- if (error)
- return error;
- }
name++;
nlen--;
table = table->child;