[PATCH] sysctl: remove the proc_dir_entry member for the sysctl tables
It isn't needed anymore, all of the users are gone, and all of the ctl_table initializers have been converted to use explicit names of the fields they are initializing. [akpm@osdl.org: NTFS fix] Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Cc: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d912b0cc1a
commit
3fbfa98112
@@ -261,7 +261,6 @@ static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *
|
||||
for(i = 0; i < ARRAY_SIZE(t->dn_dev_vars) - 1; i++) {
|
||||
long offset = (long)t->dn_dev_vars[i].data;
|
||||
t->dn_dev_vars[i].data = ((char *)parms) + offset;
|
||||
t->dn_dev_vars[i].de = NULL;
|
||||
}
|
||||
|
||||
if (dev) {
|
||||
@@ -273,13 +272,9 @@ static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *
|
||||
}
|
||||
|
||||
t->dn_dev_dev[0].child = t->dn_dev_vars;
|
||||
t->dn_dev_dev[0].de = NULL;
|
||||
t->dn_dev_conf_dir[0].child = t->dn_dev_dev;
|
||||
t->dn_dev_conf_dir[0].de = NULL;
|
||||
t->dn_dev_proto_dir[0].child = t->dn_dev_conf_dir;
|
||||
t->dn_dev_proto_dir[0].de = NULL;
|
||||
t->dn_dev_root_dir[0].child = t->dn_dev_proto_dir;
|
||||
t->dn_dev_root_dir[0].de = NULL;
|
||||
t->dn_dev_vars[0].extra1 = (void *)dev;
|
||||
|
||||
t->sysctl_header = register_sysctl_table(t->dn_dev_root_dir);
|
||||
|
||||
Reference in New Issue
Block a user