Skip to content

Commit

Permalink
maple_tree: delete one of the two identical checks
Browse files Browse the repository at this point in the history
There are two identical checks, delete one of them.

Link: https://lkml.kernel.org/r/20231120070937.35481-5-zhangpeng.00@bytedance.com
Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Peng Zhang authored and Andrew Morton committed Dec 12, 2023
1 parent c5e9412 commit 026b935
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/maple_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4117,9 +4117,6 @@ static inline bool mas_wr_append(struct ma_wr_state *wr_mas,
if (mt_in_rcu(mas->tree))
return false;

if (mas->offset != mas->end)
return false;

end = mas->end;
if (mas->offset != end)
return false;
Expand Down

0 comments on commit 026b935

Please sign in to comment.