summaryrefslogtreecommitdiff
path: root/net/sctp
diff options
context:
space:
mode:
authorYejune Deng <yejune.deng@gmail.com>2021-05-17 20:22:05 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-17 15:29:35 -0700
commit5796254e467bf1cff002df65fbb53ecef6a0e060 (patch)
treeca70e2099a69aaa37e6b1b4372edacce5040d0ca /net/sctp
parent609c8ae87966b60ace1ea70624b566bf686d43c9 (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/sctp')
-rw-r--r--net/sctp/protocol.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 6f2bbfeec3a4..baa4e770e4ba 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1171,7 +1171,6 @@ static const struct net_protocol sctp_protocol = {
.handler = sctp4_rcv,
.err_handler = sctp_v4_err,
.no_policy = 1,
- .netns_ok = 1,
.icmp_strict_tag_validation = 1,
};