]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Remove unnecessary assignment of orig_l index
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 19 Aug 2025 14:09:28 +0000 (10:09 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Oct 2025 18:56:33 +0000 (14:56 -0400)
The index value is already a copy of the maple state so there is no need
to set it again.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 2f6615184890b8d80cb28e5bf6af9e25375a9fec..a807988c6bc4c5d3caa2dd34ae342d3613ef223d 100644 (file)
@@ -2764,7 +2764,7 @@ static noinline void mas_wr_spanning_rebalance(struct ma_state *mas,
                b_node.b_end++;
 
        /* Stop spanning searches by searching for just index. */
-       mast->orig_l->index = mast->orig_l->last = mas->index;
+       mast->orig_l->last = mas->index;
 
        mast->bn = &b_node;
        /* Combine l_mas and r_mas and split them up evenly again. */