aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/if_wg.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index c2bc2ee..262024b 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -1804,11 +1804,7 @@ wg_queue_deinit(struct wg_queue *queue)
static size_t
wg_queue_len(struct wg_queue *queue)
{
- size_t len;
- mtx_lock(&queue->q_mtx);
- len = queue->q_len;
- mtx_unlock(&queue->q_mtx);
- return (len);
+ return (queue->q_len);
}
static int