git: 294a609fc07d - main - udp: destroy UDP and UDP-Lite inpcbinfos in single SYSUNINIT

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

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

commit 294a609fc07d5cf26ee430b0015d9846b81c8e5c
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-12-07 17:55:38 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-12-07 17:55:38 +0000

    udp: destroy UDP and UDP-Lite inpcbinfos in single SYSUNINIT
    
    They are created in a single SYSINIT, there is no reason to destroy
    them in separate functions.
---
 sys/netinet/udp_usrreq.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 5110d63e1092..e8aaf1f11134 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -237,18 +237,10 @@ udp_destroy(void *unused __unused)
 {
 
 	in_pcbinfo_destroy(&V_udbinfo);
+	in_pcbinfo_destroy(&V_ulitecbinfo);
 	uma_zdestroy(V_udpcb_zone);
 }
 VNET_SYSUNINIT(udp, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH, udp_destroy, NULL);
-
-static void
-udplite_destroy(void *unused __unused)
-{
-
-	in_pcbinfo_destroy(&V_ulitecbinfo);
-}
-VNET_SYSUNINIT(udplite, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH, udplite_destroy,
-    NULL);
 #endif
 
 #ifdef INET