[PATCH 7/8] mtd/ubi: use rbtree postorder iteration helper instead of opencoding

2013-11-01 Thread Cody P Schafer
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 --- drivers/mtd/ubi/attach.c | 49 +++- drivers/mtd/ubi/wl.c | 25

[PATCH 7/8] mtd/ubi: use rbtree postorder iteration helper instead of opencoding

2013-11-01 Thread Cody P Schafer
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 c...@linux.vnet.ibm.com --- drivers/mtd/ubi/attach.c | 49 +++-