summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-02-10 07:36:39 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-10 07:36:39 -0800
commitb9df02686aba62133bc4d84cf84e5da0c99f4206 (patch)
tree4bb608083aeb033da4478f8caea7c68f449e568c
parent01c42c0c7d77157f44bb7429755fdc7198fb30c5 (diff)
[PATCH] remove unneeded test from radix_tree_extend()
Patch from: Szabolcs Berecz <szabi@mplayerhq.hu> No need to check root->rnode in the loop. In the loop it remains nonzero.
-rw-r--r--lib/radix-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/radix-tree.c b/lib/radix-tree.c
index dc20f8513946..e1973ed79a7a 100644
--- a/lib/radix-tree.c
+++ b/lib/radix-tree.c
@@ -154,8 +154,7 @@ static int radix_tree_extend(struct radix_tree_root *root, unsigned long index)
/* 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);