diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-28 22:55:29 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-28 22:56:48 +0200 |
commit | f64cd4fd2935d0e71c549199937c3dd2abd6cb0f (patch) | |
tree | 597238e3a890cc581c983c148dbfc0a4fc85ecfb | |
parent | dc9fbcbf58c72dedbdff7135a713761559dea3e6 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |