OSDN Git Service

netfilter: nat: use test_and_clear_bit when deleting ct from bysource list
authorFlorian Westphal <fw@strlen.de>
Thu, 5 Oct 2017 14:46:45 +0000 (16:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2017 15:54:47 +0000 (17:54 +0200)
commit2420770b3fe56ca97ecf34e230762cd9f3296dae
tree284b127ebb139711e87ecc5b53761ea10a43b325
parent63c2af90e502fca6cda2855541d43443666e337f
netfilter: nat: use test_and_clear_bit when deleting ct from bysource list

We can use a single statement for this.
While at it, fixup the comment -- we don't have pernet table/ops
anymore, the function is only called from module exit path.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_core.c