Download raw body.
remove unused wg_queue_len()
Index: sys/net/if_wg.c
===================================================================
RCS file: /cvs/src/sys/net/if_wg.c,v
diff -u -p -r1.46 if_wg.c
--- sys/net/if_wg.c 17 Jul 2025 12:43:43 -0000 1.46
+++ sys/net/if_wg.c 17 Sep 2025 03:11:48 -0000
@@ -358,7 +358,6 @@ struct mbuf *
wg_ring_dequeue(struct wg_ring *);
struct mbuf *
wg_queue_dequeue(struct wg_queue *, struct wg_tag **);
-size_t wg_queue_len(struct wg_queue *);
struct noise_remote *
wg_remote_get(void *, uint8_t[NOISE_PUBLIC_KEY_LEN]);
@@ -1995,16 +1994,6 @@ wg_queue_dequeue(struct wg_queue *q, str
m = NULL;
mtx_leave(&q->q_mtx);
return m;
-}
-
-size_t
-wg_queue_len(struct wg_queue *q)
-{
- size_t len;
- mtx_enter(&q->q_mtx);
- len = q->q_list.ml_len;
- mtx_leave(&q->q_mtx);
- return len;
}
struct noise_remote *
remove unused wg_queue_len()