diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-10 07:36:39 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-10 07:36:39 -0800 |
| commit | b9df02686aba62133bc4d84cf84e5da0c99f4206 (patch) | |
| tree | 4bb608083aeb033da4478f8caea7c68f449e568c | |
| parent | 01c42c0c7d77157f44bb7429755fdc7198fb30c5 (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.c | 3 |
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); |
