History

maple_tree: remove unused mas_is_root_limits()

The last callers of mas_is_root_limits() were removed by commit b8852ef30c67 ("maple_tree: remove maple big node and subtree structs"), together with the maple subtree state (mast_*) code that used it. As a static inline it does not trigger -Wunused-function, so it went unnoticed. Remove it. No functional change.

Zhan Xusheng committed 3 months ago

Commit 36a97991 parent dc924f01 file · +0 −5Browse files

Unified · Split

lib/maple_tree.c+0−5
@@ -356,11 +356,6 @@ static __always_inline bool mte_is_root(const struct maple_enode *node) · 355 unmodified lines
356356 return ma_is_root(mte_to_node(node));
357357 }
358358
359−static inline bool mas_is_root_limits(const struct ma_state *mas)
360−{
361− return !mas->min && mas->max == ULONG_MAX;
362−}
363−
364359 static __always_inline bool mt_is_alloc(struct maple_tree *mt)
365360 {
366361 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t