]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Remove unnecessary check for mas_next_nentry().
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 7 Dec 2020 01:00:15 +0000 (20:00 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:33:34 +0000 (12:33 -0500)
Don't need to check if r_start is out of range of node.

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

index deff629c347a1b50f4a0e0ba79771093048e4e4f..1b8ea0f2d43bf0ebff281fd9d12caedf78c1ae50 100644 (file)
@@ -3764,9 +3764,6 @@ static inline bool mas_next_nentry(struct ma_state *mas, unsigned long max,
                        goto no_entry;
                }
 
-               if (r_start > mas->max)
-                       goto no_entry;
-
                if (mas_slot(mas, slots, offset))
                        goto found;