The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9f8081657d2338c3aada3393b320c237fd1a9ec2
commit 9f8081657d2338c3aada3393b320c237fd1a9ec2 Author: Mark Johnston <[email protected]> AuthorDate: 2026-01-27 14:56:55 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-02-09 18:03:41 +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 d30bd42ec578..267d76111780 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -2835,12 +2835,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",
