From 15161bd1a928e60b6c1869cf82a24bdaae3d5d71 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Sun, 6 Dec 2020 20:00:15 -0500 Subject: [PATCH] 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 --- lib/maple_tree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index deff629c347a1..1b8ea0f2d43bf 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; -- 2.50.1