aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/devinet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r--net/ipv4/devinet.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index ba5e7f4cd127..8a0ec10a13a7 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -35,7 +35,6 @@
35#include <linux/module.h> 35#include <linux/module.h>
36#include <linux/types.h> 36#include <linux/types.h>
37#include <linux/kernel.h> 37#include <linux/kernel.h>
38#include <linux/sched.h>
39#include <linux/string.h> 38#include <linux/string.h>
40#include <linux/mm.h> 39#include <linux/mm.h>
41#include <linux/socket.h> 40#include <linux/socket.h>
@@ -1577,7 +1576,6 @@ static void devinet_sysctl_register(struct in_device *in_dev,
1577 return; 1576 return;
1578 for (i = 0; i < ARRAY_SIZE(t->devinet_vars) - 1; i++) { 1577 for (i = 0; i < ARRAY_SIZE(t->devinet_vars) - 1; i++) {
1579 t->devinet_vars[i].data += (char *)p - (char *)&ipv4_devconf; 1578 t->devinet_vars[i].data += (char *)p - (char *)&ipv4_devconf;
1580 t->devinet_vars[i].de = NULL;
1581 } 1579 }
1582 1580
1583 if (dev) { 1581 if (dev) {
@@ -1599,15 +1597,11 @@ static void devinet_sysctl_register(struct in_device *in_dev,
1599 1597
1600 t->devinet_dev[0].procname = dev_name; 1598 t->devinet_dev[0].procname = dev_name;
1601 t->devinet_dev[0].child = t->devinet_vars; 1599 t->devinet_dev[0].child = t->devinet_vars;
1602 t->devinet_dev[0].de = NULL;
1603 t->devinet_conf_dir[0].child = t->devinet_dev; 1600 t->devinet_conf_dir[0].child = t->devinet_dev;
1604 t->devinet_conf_dir[0].de = NULL;
1605 t->devinet_proto_dir[0].child = t->devinet_conf_dir; 1601 t->devinet_proto_dir[0].child = t->devinet_conf_dir;
1606 t->devinet_proto_dir[0].de = NULL;
1607 t->devinet_root_dir[0].child = t->devinet_proto_dir; 1602 t->devinet_root_dir[0].child = t->devinet_proto_dir;
1608 t->devinet_root_dir[0].de = NULL;
1609 1603
1610 t->sysctl_header = register_sysctl_table(t->devinet_root_dir, 0); 1604 t->sysctl_header = register_sysctl_table(t->devinet_root_dir);
1611 if (!t->sysctl_header) 1605 if (!t->sysctl_header)
1612 goto free_procname; 1606 goto free_procname;
1613 1607
@@ -1641,7 +1635,7 @@ void __init devinet_init(void)
1641 rtnetlink_links[PF_INET] = inet_rtnetlink_table; 1635 rtnetlink_links[PF_INET] = inet_rtnetlink_table;
1642#ifdef CONFIG_SYSCTL 1636#ifdef CONFIG_SYSCTL
1643 devinet_sysctl.sysctl_header = 1637 devinet_sysctl.sysctl_header =
1644 register_sysctl_table(devinet_sysctl.devinet_root_dir, 0); 1638 register_sysctl_table(devinet_sysctl.devinet_root_dir);
1645 devinet_sysctl_register(NULL, &ipv4_devconf_dflt); 1639 devinet_sysctl_register(NULL, &ipv4_devconf_dflt);
1646#endif 1640#endif
1647} 1641}