

Patch from: Szabolcs Berecz <szabi@mplayerhq.hu>

No need to check root->rnode in the loop. In the loop it remains nonzero.




 radix-tree.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN lib/radix-tree.c~radix-tree-rnode-test lib/radix-tree.c
--- 25/lib/radix-tree.c~radix-tree-rnode-test	2003-02-08 17:03:28.000000000 -0800
+++ 25-akpm/lib/radix-tree.c	2003-02-08 17:03:28.000000000 -0800
@@ -154,8 +154,7 @@ static int radix_tree_extend(struct radi
 
 			/* Increase the height.  */
 			node->slots[0] = root->rnode;
-			if (root->rnode)
-				node->count = 1;
+			node->count = 1;
 			root->rnode = node;
 			root->height++;
 		} while (height > root->height);

_
