From: Liam R. Howlett Date: Tue, 8 Sep 2020 15:27:48 +0000 (-0400) Subject: maple_tree: Remove unnecessary check from next_nentry X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ef41e125cc6af07128f00af1af397f0bca878c76;p=users%2Fjedix%2Flinux-maple.git maple_tree: Remove unnecessary check from next_nentry Signed-off-by: Liam R. Howlett --- 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)