mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
sctp: remove unnecessary asoc in sctp_has_association
After Commit dae399d7fd ("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 <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
13d5a30a1e
commit
5306653850
3 changed files with 14 additions and 15 deletions
|
|
@ -1341,12 +1341,12 @@ struct sctp_association *sctp_endpoint_lookup_assoc(
|
|||
const struct sctp_endpoint *ep,
|
||||
const union sctp_addr *paddr,
|
||||
struct sctp_transport **);
|
||||
int sctp_endpoint_is_peeled_off(struct sctp_endpoint *,
|
||||
const union sctp_addr *);
|
||||
bool sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep,
|
||||
const union sctp_addr *paddr);
|
||||
struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *,
|
||||
struct net *, const union sctp_addr *);
|
||||
int sctp_has_association(struct net *net, const union sctp_addr *laddr,
|
||||
const union sctp_addr *paddr);
|
||||
bool sctp_has_association(struct net *net, const union sctp_addr *laddr,
|
||||
const union sctp_addr *paddr);
|
||||
|
||||
int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep,
|
||||
const struct sctp_association *asoc,
|
||||
|
|
|
|||
Loading…
Reference in a new issue