Commit 26cec9d4 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from flush

Use the element object that is already offered instead.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent a5523390
...@@ -1814,8 +1814,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set, ...@@ -1814,8 +1814,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
{ {
struct nft_pipapo_elem *e = elem; struct nft_pipapo_elem *e = elem;
return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext), nft_set_elem_change_active(net, set, &e->ext);
&e->ext);
return true;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment