diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-14 18:55:07 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-15 01:16:50 +0200 |
commit | 905afd9eb2611e9771037513aa7cc0fa1eee2698 (patch) | |
tree | 6b81a7feffbb8261e9b3a737bc0aad4803d6b59e | |
parent | 0c11b46178b80b179e50b26258d6c066875ec44b (diff) |
routingtable: satisfy sparse
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/routingtable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routingtable.c b/src/routingtable.c index 8db3efe..c4e343f 100644 --- a/src/routingtable.c +++ b/src/routingtable.c @@ -81,7 +81,8 @@ static int walk_ips_by_peer(struct routing_table_node __rcu *top, int family, vo #define push(p) ({ BUG_ON(len >= 128); stack[len++] = p; }) static void walk_remove_by_peer(struct routing_table_node __rcu **top, struct wireguard_peer *peer, struct mutex *lock) { - struct routing_table_node __rcu **stack[128], **nptr, *node, *prev; + struct routing_table_node __rcu **stack[128], **nptr; + struct routing_table_node *node, *prev; unsigned int len; if (unlikely(!peer || !ref(*top))) |