summaryrefslogtreecommitdiffhomepage
path: root/src/compat/udp_tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-25 16:54:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commitbd6692ea74658bc084ba8fa1979549beda104be7 (patch)
treeb810a8685ded8ebf4419249172f6ebdd47b84352 /src/compat/udp_tunnel
parentc02f8ba156cf4223504edf9c64febeca304831b4 (diff)
peer: get rid of peer_for_each magic
Since the peer list is protected by the device_update_lock, and since items are removed from the peer list before putting their final reference, we don't actually need to take a reference when iterating. This allows us to simplify the macro considerably. Suggested-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/udp_tunnel')
0 files changed, 0 insertions, 0 deletions