diff options
author | Peng Zhang <zhangpeng.00@bytedance.com> | 2023-11-20 08:09:36 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-12 19:57:00 +0100 |
commit | 026b935cd929c18d496fbf9432e8174ec40cdbc8 (patch) | |
tree | 2355d8a7cb947c76e622808ca7bb974711e90adc /lib/maple_tree.c | |
parent | maple_tree: remove an unused parameter for ma_meta_end() (diff) | |
download | linux-026b935cd929c18d496fbf9432e8174ec40cdbc8.tar.xz linux-026b935cd929c18d496fbf9432e8174ec40cdbc8.zip |
maple_tree: delete one of the two identical checks
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>
Diffstat (limited to 'lib/maple_tree.c')
-rw-r--r-- | lib/maple_tree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 65c25e88c47e..ca37cdf4b82e 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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; |