The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0f1e1350704af555a4b30136f5f3d16db6f2dc51
commit 0f1e1350704af555a4b30136f5f3d16db6f2dc51 Author: Mark Johnston <[email protected]> AuthorDate: 2026-01-27 14:56:55 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-01-27 14:56:55 +0000 ip_mroute: EVENTHANDLER_REGISTER does not fail No functional change intended. MFC after: 1 week Sponsored by: Stormshield Sponsored by: Klara, Inc. --- 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 f9efdc419882..a4ad634b3d3f 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -2834,12 +2834,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",
