]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2cadc9cdfe69168281c1367cce0d6981c5292e3d
tree284b127ebb139711e87ecc5b53761ea10a43b325
parentab9e3ebc8d3e5b58c5358aa3fb7c4c7513b95a51
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