mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from flush
Use the element object that is already offered instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
a552339063
commit
26cec9d414
1 changed files with 3 additions and 2 deletions
|
@ -1814,8 +1814,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
|
|||
{
|
||||
struct nft_pipapo_elem *e = elem;
|
||||
|
||||
return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext),
|
||||
&e->ext);
|
||||
nft_set_elem_change_active(net, set, &e->ext);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue