From 80457026405cf5c19b92152ff661ff73f44dacd7 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 8 Sep 2020 11:27:48 -0400 Subject: [PATCH] maple_tree: Remove unnecessary check from next_nentry Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 74354f7f0e8c..441117fd6d08 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3272,11 +3272,7 @@ static inline bool mas_next_nentry(struct ma_state *mas, unsigned long max, while (slot < count) { pivot = mas_safe_pivot(mas, slot); - - if (pivot > mas->max) // possibly a retry. - goto no_entry; - - if (slot != 0 && pivot == 0) + if (!pivot && slot) goto no_entry; if (r_start > max) -- 2.50.1