]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: use swap macro instead of _manually_ swapping values
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 30 Oct 2017 22:19:25 +0000 (17:19 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:11:11 +0000 (18:11 +0100)
commit913aa6549da7f7558a28f30a2ff3d39005b2add3
tree1b5a4caa0e6b7cd172d40e8030535a0b91fec2b4
parent4aeef263a54b3ff6369ae6d1df6e1c28b1e93636
netfilter: ipset: use swap macro instead of _manually_ swapping values

Make use of the swap macro and remove unnecessary variables tmp.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_bitmap_ip.c
net/netfilter/ipset/ip_set_bitmap_ipmac.c
net/netfilter/ipset/ip_set_bitmap_port.c