]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove unnecessary asoc in sctp_has_association
authorXin Long <lucien.xin@gmail.com>
Mon, 26 Mar 2018 08:55:00 +0000 (16:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 14:22:11 +0000 (10:22 -0400)
commit86226fa306d3875189215eb3362a08e8385bc7fa
treec1c94686f9b5e6c77548cf6143156bd7041be5e6
parent8b56a86f926fed651a93cee4285aa8ee74f5ebaf
sctp: remove unnecessary asoc in sctp_has_association

After Commit 25b0c2cb1c06 ("sctp: hold transport instead of assoc
when lookup assoc in rx path"), it put transport instead of asoc
in sctp_has_association. Variable 'asoc' is not used any more.

So this patch is to remove it, while at it,  it also changes the
return type of sctp_has_association to bool, and does the same
for it's caller sctp_endpoint_is_peeled_off.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/endpointola.c
net/sctp/input.c