aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pppox.c')
-rw-r--r--drivers/net/pppox.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/pppox.c b/drivers/net/pppox.c
index ee9d3cf81beb..4f6d33fbc673 100644
--- a/drivers/net/pppox.c
+++ b/drivers/net/pppox.c
@@ -111,10 +111,6 @@ static int pppox_create(struct net *net, struct socket *sock, int protocol)
111 if (protocol < 0 || protocol > PX_MAX_PROTO) 111 if (protocol < 0 || protocol > PX_MAX_PROTO)
112 goto out; 112 goto out;
113 113
114 /* we support net-namespaces for PPPoE only (yet) */
115 if (protocol != PX_PROTO_OE && net != &init_net)
116 return -EAFNOSUPPORT;
117
118 rc = -EPROTONOSUPPORT; 114 rc = -EPROTONOSUPPORT;
119 if (!pppox_protos[protocol]) 115 if (!pppox_protos[protocol])
120 request_module("pppox-proto-%d", protocol); 116 request_module("pppox-proto-%d", protocol);