Skip to content

Commit c5e9412

Browse files
Peng Zhangakpm00
authored andcommitted
maple_tree: remove an unused parameter for ma_meta_end()
The parameter maple_type is not used, so remove it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peng Zhang <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Dan Carpenter <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3f05fcd commit c5e9412

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/maple_tree.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -930,10 +930,8 @@ static inline unsigned char ma_meta_end(struct maple_node *mn,
930930
/*
931931
* ma_meta_gap() - Get the largest gap location of a node from the metadata
932932
* @mn: The maple node
933-
* @mt: The maple node type
934933
*/
935-
static inline unsigned char ma_meta_gap(struct maple_node *mn,
936-
enum maple_type mt)
934+
static inline unsigned char ma_meta_gap(struct maple_node *mn)
937935
{
938936
return mn->ma64.meta.gap;
939937
}
@@ -1587,7 +1585,7 @@ static inline unsigned long mas_max_gap(struct ma_state *mas)
15871585

15881586
node = mas_mn(mas);
15891587
MAS_BUG_ON(mas, mt != maple_arange_64);
1590-
offset = ma_meta_gap(node, mt);
1588+
offset = ma_meta_gap(node);
15911589
gaps = ma_gaps(node, mt);
15921590
return gaps[offset];
15931591
}
@@ -1618,7 +1616,7 @@ static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset,
16181616

16191617
ascend:
16201618
MAS_BUG_ON(mas, pmt != maple_arange_64);
1621-
meta_offset = ma_meta_gap(pnode, pmt);
1619+
meta_offset = ma_meta_gap(pnode);
16221620
meta_gap = pgaps[meta_offset];
16231621

16241622
pgaps[offset] = new;
@@ -7260,7 +7258,7 @@ static void mas_validate_gaps(struct ma_state *mas)
72607258
counted:
72617259
if (mt == maple_arange_64) {
72627260
MT_BUG_ON(mas->tree, !gaps);
7263-
offset = ma_meta_gap(node, mt);
7261+
offset = ma_meta_gap(node);
72647262
if (offset > i) {
72657263
pr_err("gap offset %p[%u] is invalid\n", node, offset);
72667264
MT_BUG_ON(mas->tree, 1);

0 commit comments

Comments
 (0)