]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: delete one of the two identical checks
authorPeng Zhang <zhangpeng.00@bytedance.com>
Mon, 20 Nov 2023 07:09:36 +0000 (15:09 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:44 +0000 (13:16 -0800)
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>
lib/maple_tree.c

index 3d894f849e576194a35b1ea069d27849b02c4324..bf64d080b3765a91b9d3b027837a425232b9247a 100644 (file)
@@ -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;