[Maple Tree] Report of duplicate code at the function mtree_range_walk()

JaeJoon Jung rgbi3307 at gmail.com
Mon Feb 14 19:37:31 PST 2022


I found duplicate code at the function mtree_range_walk() in
lib/maple_tree.c as below:

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index be9d9af7ad0c..1ff58dee5162 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -2804,7 +2804,7 @@ static inline void *mtree_range_walk(struct ma_state *mas)
                if (pivots[offset] >= mas->index) {
                        prev_max = max;
                        prev_min = min;
-                       max = pivots[offset];
                        goto next;
                }
...
                if (likely(offset > end) && pivots[offset]) {
next:
                        max = pivots[offset];
                }

And,
There is error message on build tools/testing/radix-tree/maple as below:

cc: error: ma_xa_benchmark.o: No such file or directory

Please, Check above reports.
Have a good day.
>From JaeJoon Jung.



More information about the maple-tree mailing list