]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead...
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
commit682924cf4fce2355226f260f9eefa43fe46edcc7
tree76bc088865d6fc79d18ac10003e0db5b6935099d
parent69518b695c050437d0249dd82a6c1cf70abc8319
net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead of opencoding

Use rbtree_postorder_for_each_entry_safe() to destroy the rbtree instead
of opencoding an alternate postorder iteration that modifies the tree

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
net/netfilter/ipset/ip_set_hash_netiface.c