if_wg: do not use continue statement on \!VIMAGE

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2022-06-10 17:38:32 +02:00
parent 8ed513557b
commit 5043212a73
1 changed files with 4 additions and 4 deletions

View File

@ -3043,10 +3043,10 @@ wg_module_deinit(void)
VNET_LIST_RLOCK();
VNET_FOREACH(vnet_iter) {
struct if_clone *clone = VNET_VNET(vnet_iter, wg_cloner);
if (!clone)
continue;
if_clone_detach(clone);
VNET_VNET(vnet_iter, wg_cloner) = NULL;
if (clone) {
if_clone_detach(clone);
VNET_VNET(vnet_iter, wg_cloner) = NULL;
}
}
VNET_LIST_RUNLOCK();
NET_EPOCH_WAIT();