Skip to content

Commit 1988b31

Browse files
Kemeng Shiakpm00
authored andcommitted
Xarray: remove repeat check in xas_squash_marks()
Caller of xas_squash_marks() has ensured xas->xa_sibs is non-zero. Just remove repeat check of xas->xa_sibs in xas_squash_marks(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kemeng Shi <[email protected]> Cc: Mattew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 97db889 commit 1988b31

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/xarray.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ static void xas_squash_marks(const struct xa_state *xas)
128128
unsigned int mark = 0;
129129
unsigned int limit = xas->xa_offset + xas->xa_sibs + 1;
130130

131-
if (!xas->xa_sibs)
132-
return;
133-
134131
do {
135132
unsigned long *marks = xas->xa_node->marks[mark];
136133
if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)

0 commit comments

Comments
 (0)