summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-28 22:55:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-28 22:56:48 +0200
commitf64cd4fd2935d0e71c549199937c3dd2abd6cb0f (patch)
tree597238e3a890cc581c983c148dbfc0a4fc85ecfb
parentdc9fbcbf58c72dedbdff7135a713761559dea3e6 (diff)
peer: use LIST_HEAD macro
Suggested-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 71325bb..b66e8b5 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -177,8 +177,8 @@ void wg_peer_remove(struct wg_peer *peer)
void wg_peer_remove_all(struct wg_device *wg)
{
- struct list_head dead_peers = LIST_HEAD_INIT(dead_peers);
struct wg_peer *peer, *temp;
+ LIST_HEAD(dead_peers);
lockdep_assert_held(&wg->device_update_lock);