diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-14 03:34:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:59 -0500 |
commit | ae836810263509ff7a3c2c021754ce6f66b3fab6 (patch) | |
tree | a6f3dee4ff6ccfb0eafdcddf43ae370d1ea0c8e5 | |
parent | 6703ddfcce61ad66db606085a8d42dcab264f840 (diff) |
[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>
-rw-r--r-- | kernel/sysctl.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 48708a73852..cb46d015684 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1175,14 +1175,6 @@ repeat: | |||
1175 | if (table->child) { | 1175 | if (table->child) { |
1176 | if (ctl_perm(table, 001)) | 1176 | if (ctl_perm(table, 001)) |
1177 | return -EPERM; | 1177 | return -EPERM; |
1178 | if (table->strategy) { | ||
1179 | error = table->strategy( | ||
1180 | table, name, nlen, | ||
1181 | oldval, oldlenp, | ||
1182 | newval, newlen); | ||
1183 | if (error) | ||
1184 | return error; | ||
1185 | } | ||
1186 | name++; | 1178 | name++; |
1187 | nlen--; | 1179 | nlen--; |
1188 | table = table->child; | 1180 | table = table->child; |