aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2021-09-12 17:21:15 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2021-09-12 17:21:15 +0000
commit4181fa2a209e0709939ac2f9fb86884522855600 (patch)
tree8870b23e0f81e8506d4497d3d3d080eaadc84566 /sys/netinet
parentae87a08c410d9e8a1a906dfd23a8cc732d1c5ff5 (diff)
downloadsrc-4181fa2a209e0709939ac2f9fb86884522855600.tar.gz
src-4181fa2a209e0709939ac2f9fb86884522855600.zip
sctp: minor cleanup, no functional change
MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_pcb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index a33acce4380b..fabe19c1444d 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -6698,7 +6698,6 @@ sctp_is_vtag_good(uint32_t tag, uint16_t lport, uint16_t rport, struct timeval *
{
struct sctpasochead *head;
struct sctp_tcb *stcb;
- bool result;
SCTP_INP_INFO_LOCK_ASSERT();
@@ -6722,13 +6721,10 @@ sctp_is_vtag_good(uint32_t tag, uint16_t lport, uint16_t rport, struct timeval *
continue;
}
/* The tag is currently used, so don't use it. */
- result = false;
- goto out;
+ return (false);
}
}
- result = !sctp_is_in_timewait(tag, lport, rport, (uint32_t)now->tv_sec);
-out:
- return (result);
+ return (!sctp_is_in_timewait(tag, lport, rport, (uint32_t)now->tv_sec));
}
static void