summaryrefslogtreecommitdiff
path: root/net/core/net_namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/net_namespace.c')
-rw-r--r--net/core/net_namespace.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index d5e3fd819163..bdea7d5fac56 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -400,16 +400,9 @@ static __net_init void preinit_net_sysctl(struct net *net)
/* init code that must occur even if setup_net() is not called. */
static __net_init int preinit_net(struct net *net, struct user_namespace *user_ns)
{
- const struct proc_ns_operations *ns_ops;
int ret;
-#ifdef CONFIG_NET_NS
- ns_ops = &netns_operations;
-#else
- ns_ops = NULL;
-#endif
-
- ret = ns_common_init(net, ns_ops);
+ ret = ns_common_init(net);
if (ret)
return ret;