git: 3f89900bf1a4 - main - udp6: fix build with INET6 and without INVARIANTS

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Wed, 07 Dec 2022 20:29:37 UTC
The branch main has been updated by glebius:

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

commit 3f89900bf1a40ce033e7b1b3f9ba5830669a2360
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-12-07 20:27:15 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-12-07 20:27:15 +0000

    udp6: fix build with INET6 and without INVARIANTS
    
    Reported by:    Michael Butler <imb protected-networks.net>
    Fixes:          483fe96511ec02a3f077f9a59f1a96acb3640dea
---
 sys/netinet6/udp6_usrreq.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index 484f43d24808..df5e56076218 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -1202,14 +1202,11 @@ static void
 udp6_detach(struct socket *so)
 {
 	struct inpcb *inp;
-	struct udpcb *up;
 
 	inp = sotoinpcb(so);
 	KASSERT(inp != NULL, ("udp6_detach: inp == NULL"));
 
 	INP_WLOCK(inp);
-	up = intoudpcb(inp);
-	KASSERT(up != NULL, ("%s: up == NULL", __func__));
 	in_pcbdetach(inp);
 	in_pcbfree(inp);
 }