From: Eric W. Biederman Date: Wed, 14 Feb 2007 08:34:08 +0000 (-0800) Subject: [PATCH] sysctl: remove support for directory strategy routines X-Git-Tag: v2.6.21-rc1~194 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae836810263509ff7a3c2c021754ce6f66b3fab6;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 48708a7385..cb46d01568 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;