mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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. [[email protected]: NTFS fix] Signed-off-by: Eric W. Biederman <[email protected]> Acked-by: Stephen Smalley <[email protected]> Cc: James Morris <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d912b0cc1a
commit
3fbfa98112
6 changed files with 37 additions and 26 deletions
|
|
@ -1576,7 +1576,6 @@ static void devinet_sysctl_register(struct in_device *in_dev,
|
|||
return;
|
||||
for (i = 0; i < ARRAY_SIZE(t->devinet_vars) - 1; i++) {
|
||||
t->devinet_vars[i].data += (char *)p - (char *)&ipv4_devconf;
|
||||
t->devinet_vars[i].de = NULL;
|
||||
}
|
||||
|
||||
if (dev) {
|
||||
|
|
@ -1598,13 +1597,9 @@ static void devinet_sysctl_register(struct in_device *in_dev,
|
|||
|
||||
t->devinet_dev[0].procname = dev_name;
|
||||
t->devinet_dev[0].child = t->devinet_vars;
|
||||
t->devinet_dev[0].de = NULL;
|
||||
t->devinet_conf_dir[0].child = t->devinet_dev;
|
||||
t->devinet_conf_dir[0].de = NULL;
|
||||
t->devinet_proto_dir[0].child = t->devinet_conf_dir;
|
||||
t->devinet_proto_dir[0].de = NULL;
|
||||
t->devinet_root_dir[0].child = t->devinet_proto_dir;
|
||||
t->devinet_root_dir[0].de = NULL;
|
||||
|
||||
t->sysctl_header = register_sysctl_table(t->devinet_root_dir);
|
||||
if (!t->sysctl_header)
|
||||
|
|
|
|||
Loading…
Reference in a new issue