From 294a609fc07d5cf26ee430b0015d9846b81c8e5c Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 7 Dec 2022 09:55:38 -0800 Subject: [PATCH] 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 5110d63e109..e8aaf1f1113 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