net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead...
authorCody P Schafer <[email protected]>
Thu, 23 Jan 2014 23:56:07 +0000 (15:56 -0800)
committerLinus Torvalds <[email protected]>
Fri, 24 Jan 2014 00:37:03 +0000 (16:37 -0800)
commitb182837ac111e87f8e82cbcb0046449d9412187f
treed1d27a06ac2a6dabb8600ce810d6afc070fd7e5c
parent964fe94d71b771c8801134407ad8676874bb589e
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 <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Pablo Neira Ayuso <[email protected]>
Cc: Patrick McHardy <[email protected]>
Cc: Jozsef Kadlecsik <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
net/netfilter/ipset/ip_set_hash_netiface.c