Commit 39af0c409e8c06b51caf7dc43e49ef96ae790a55
Committed by
David S. Miller
1 parent
bc9627e7e9
Exists in
master
and in
16 other branches
net: remove outdated comment for ipv4 and ipv6 protocol handler
since f9242b6b28d61295f2bf7e8adfb1060b382e5381 inet: Sanitize inet{,6} protocol demux. there are not pretended hash tables for ipv4 or ipv6 protocol handler. Signed-off-by: Baker Zhang <Baker.kernel@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 0 additions and 12 deletions Side-by-side Diff
net/ipv4/protocol.c
... | ... | @@ -31,10 +31,6 @@ |
31 | 31 | const struct net_protocol __rcu *inet_protos[MAX_INET_PROTOS] __read_mostly; |
32 | 32 | const struct net_offload __rcu *inet_offloads[MAX_INET_PROTOS] __read_mostly; |
33 | 33 | |
34 | -/* | |
35 | - * Add a protocol handler to the hash tables | |
36 | - */ | |
37 | - | |
38 | 34 | int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) |
39 | 35 | { |
40 | 36 | if (!prot->netns_ok) { |
... | ... | @@ -54,10 +50,6 @@ |
54 | 50 | NULL, prot) ? 0 : -1; |
55 | 51 | } |
56 | 52 | EXPORT_SYMBOL(inet_add_offload); |
57 | - | |
58 | -/* | |
59 | - * Remove a protocol from the hash tables. | |
60 | - */ | |
61 | 53 | |
62 | 54 | int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) |
63 | 55 | { |
net/ipv6/protocol.c