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)
commitc0453377518d8dd30dcc07b5bdd9e29512ca9aca
tree1b5a4caa0e6b7cd172d40e8030535a0b91fec2b4
parenta3c90f7a2323b331ae816d5b0633e68148e25d04
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