X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=lib%2Fradix-tree.c;h=7ea2e033d7153ad23de9dc02c0c0786abc1e11e2;hb=52bd080d5c87af556bf71e3b07bdd8586166c43b;hp=5086bb962b4dd9ca6471afb76f0698facb914816;hpb=6d1f23f204c9e4638bd30ff3a768c47e40cd3ac0;p=mv-sheeva.git diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 5086bb962b4..7ea2e033d71 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -736,10 +736,11 @@ next: } } /* - * The iftag must have been set somewhere because otherwise - * we would return immediated at the beginning of the function + * We need not to tag the root tag if there is no tag which is set with + * settag within the range from *first_indexp to last_index. */ - root_tag_set(root, settag); + if (tagged > 0) + root_tag_set(root, settag); *first_indexp = index; return tagged;