git: e24d4d533f52 - stable/13 - sctp: minor cleanup, no functional change

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Tue, 22 Feb 2022 22:48:53 UTC
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=e24d4d533f520342bf579e0435781c7dd12b1531

commit e24d4d533f520342bf579e0435781c7dd12b1531
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-09-12 17:21:15 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-02-22 22:48:24 +0000

    sctp: minor cleanup, no functional change
    
    (cherry picked from commit 4181fa2a209e0709939ac2f9fb86884522855600)
---
 sys/netinet/sctp_pcb.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 5bbd254e3d25..6aa5e5afd678 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -6716,7 +6716,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();
 
@@ -6740,13 +6739,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