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 | ec9bef06ac620f3ff1e1d7609919eb6527064887 (patch) | |
tree | 6466b9960d4277097ee8fbcc16c2c088ba6cd67f /src/peer.c | |
parent | netlink: cast struct over cb->args for type safety (diff) | |
download | wireguard-monolithic-historical-ec9bef06ac620f3ff1e1d7609919eb6527064887.tar.xz wireguard-monolithic-historical-ec9bef06ac620f3ff1e1d7609919eb6527064887.zip |
peer: use LIST_HEAD macro
Suggested-by: Sultan Alsawaf <sultan@kerneltoast.com>
Diffstat (limited to 'src/peer.c')
-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); |