diff options
author | Yejune Deng <yejune.deng@gmail.com> | 2021-05-17 20:22:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-17 15:29:35 -0700 |
commit | 5796254e467bf1cff002df65fbb53ecef6a0e060 (patch) | |
tree | ca70e2099a69aaa37e6b1b4372edacce5040d0ca /net/l2tp | |
parent | 609c8ae87966b60ace1ea70624b566bf686d43c9 (diff) |
net: Remove the member netns_ok
Every protocol has the 'netns_ok' member and it is euqal to 1. The
'if (!prot->netns_ok)' always false in inet_add_protocol().
Signed-off-by: Yejune Deng <yejunedeng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_ip.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c index 97ae1255fcb6..536c30d4dd7d 100644 --- a/net/l2tp/l2tp_ip.c +++ b/net/l2tp/l2tp_ip.c @@ -635,7 +635,6 @@ static struct inet_protosw l2tp_ip_protosw = { static struct net_protocol l2tp_ip_protocol __read_mostly = { .handler = l2tp_ip_recv, - .netns_ok = 1, }; static int __init l2tp_ip_init(void) |