projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e9412
)
maple_tree: delete one of the two identical checks
author
Peng Zhang
<zhangpeng.00@bytedance.com>
Mon, 20 Nov 2023 07:09:36 +0000
(15:09 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Tue, 12 Dec 2023 18:57:00 +0000
(10:57 -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
patch
|
blob
|
blame
|
history
diff --git
a/lib/maple_tree.c
b/lib/maple_tree.c
index 65c25e88c47eae89ea8d11fa96d139a174b42bd0..ca37cdf4b82ef6e5108e2d73c065e0e99c5fac64 100644
(file)
--- 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;