git: 0ff1f587ffcd - stable/14 - ip_mroute: EVENTHANDLER_REGISTER does not fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Feb 2026 18:37:01 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0ff1f587ffcde595010dcab31fbbd6bb4a4e6563
commit 0ff1f587ffcde595010dcab31fbbd6bb4a4e6563
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-01-27 14:56:55 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-02-05 18:36:43 +0000
ip_mroute: EVENTHANDLER_REGISTER does not fail
No functional change intended.
MFC after: 1 week
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
(cherry picked from commit 0f1e1350704af555a4b30136f5f3d16db6f2dc51)
---
sys/netinet/ip_mroute.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index f438ec5b45ea..306335ff8b79 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -2812,12 +2812,6 @@ ip_mroute_modevent(module_t mod, int type, void *unused)
if_detach_event_tag = EVENTHANDLER_REGISTER(ifnet_departure_event,
if_detached_event, NULL, EVENTHANDLER_PRI_ANY);
- if (if_detach_event_tag == NULL) {
- printf("ip_mroute: unable to register "
- "ifnet_departure_event handler\n");
- MRW_LOCK_DESTROY();
- return (EINVAL);
- }
if (!powerof2(mfchashsize)) {
printf("WARNING: %s not a power of 2; using default\n",