From: Liam R. Howlett Date: Mon, 7 Dec 2020 01:00:15 +0000 (-0500) Subject: maple_tree: Remove unnecessary check for mas_next_nentry(). X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=15161bd1a928e60b6c1869cf82a24bdaae3d5d71;p=users%2Fjedix%2Flinux-maple.git maple_tree: Remove unnecessary check for mas_next_nentry(). Don't need to check if r_start is out of range of node. Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index deff629c347a..1b8ea0f2d43b 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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;