From: kn Date: Wed, 26 Apr 2023 16:09:44 +0000 (+0000) Subject: Remove +20y old rt_timer_init() comment X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e0f6656cab60cd55078c6cf04d34b059dbbd3cd5;p=openbsd Remove +20y old rt_timer_init() comment Obsolete since last year's r1.411 "Rework the rttimer code." OK claudio --- diff --git a/sys/net/route.c b/sys/net/route.c index 6d5da1d228d..a3de25d7b24 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.417 2023/04/26 15:40:33 kn Exp $ */ +/* $OpenBSD: route.c,v 1.418 2023/04/26 16:09:44 kn Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1376,13 +1376,6 @@ struct rttimer { } \ } -/* - * Some subtle order problems with domain initialization mean that - * we cannot count on this being run from rt_init before various - * protocol initializations are done. Therefore, we make sure - * that this is run when the first queue is added... - */ - void rt_timer_init(void) { @@ -1486,7 +1479,7 @@ rt_timer_get_expire(const struct rtentry *rt) { const struct rttimer *r; time_t expire = 0; - + mtx_enter(&rttimer_mtx); LIST_FOREACH(r, &rt->rt_timer, rtt_link) { if (expire == 0 || expire > r->rtt_expire)