diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-04-25 17:46:47 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-25 14:09:23 -0400 |
commit | 22e15b6f9c010ffded63e6c9720a656eb3d73835 (patch) | |
tree | 25019bacfd854e86ffcb278c7cc7017516e6af28 /net/sctp/associola.c | |
parent | 81e696b57d4e9abe790da3a1a7a1dff749ae876d (diff) | |
download | blackbird-op-linux-22e15b6f9c010ffded63e6c9720a656eb3d73835.tar.gz blackbird-op-linux-22e15b6f9c010ffded63e6c9720a656eb3d73835.zip |
sctp: remove the unused sctp_assoc_is_match function
After Commit 4f0087812648 ("sctp: apply rhashtable api to send/recv
path"), there's no place using sctp_assoc_is_match, so remove it.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 837806dd5799..a8f3b088fcb2 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -988,31 +988,6 @@ out: return match; } -/* Is this the association we are looking for? */ -struct sctp_transport *sctp_assoc_is_match(struct sctp_association *asoc, - struct net *net, - const union sctp_addr *laddr, - const union sctp_addr *paddr) -{ - struct sctp_transport *transport; - - if ((htons(asoc->base.bind_addr.port) == laddr->v4.sin_port) && - (htons(asoc->peer.port) == paddr->v4.sin_port) && - net_eq(sock_net(asoc->base.sk), net)) { - transport = sctp_assoc_lookup_paddr(asoc, paddr); - if (!transport) - goto out; - - if (sctp_bind_addr_match(&asoc->base.bind_addr, laddr, - sctp_sk(asoc->base.sk))) - goto out; - } - transport = NULL; - -out: - return transport; -} - /* Do delayed input processing. This is scheduled by sctp_rcv(). */ static void sctp_assoc_bh_rcv(struct work_struct *work) { |