X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fsctp%2Fendpointola.c;h=e2f5a3ee41a7140c3865c406bf8e1d4f83044e5a;hb=e15f20ea33b8e5074145abe464b4b48acea505d9;hp=8b31468165197428239fe7e6ddece6f60878c39f;hpb=6dee6ae9d62642e81def4d461d71f13a6496ab59;p=mirror_ubuntu-eoan-kernel.git diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 8b3146816519..e2f5a3ee41a7 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -349,8 +349,8 @@ out: /* Look for any peeled off association from the endpoint that matches the * given peer address. */ -int sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep, - const union sctp_addr *paddr) +bool sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep, + const union sctp_addr *paddr) { struct sctp_sockaddr_entry *addr; struct sctp_bind_addr *bp; @@ -362,10 +362,10 @@ int sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep, */ list_for_each_entry(addr, &bp->address_list, list) { if (sctp_has_association(net, &addr->a, paddr)) - return 1; + return true; } - return 0; + return false; } /* Do delayed input processing. This is scheduled by sctp_rcv().