Commit b9df0268 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 01c42c0c
...@@ -154,8 +154,7 @@ static int radix_tree_extend(struct radix_tree_root *root, unsigned long index) ...@@ -154,8 +154,7 @@ static int radix_tree_extend(struct radix_tree_root *root, unsigned long index)
/* Increase the height. */ /* Increase the height. */
node->slots[0] = root->rnode; node->slots[0] = root->rnode;
if (root->rnode) node->count = 1;
node->count = 1;
root->rnode = node; root->rnode = node;
root->height++; root->height++;
} while (height > root->height); } while (height > root->height);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment