ma_insert was returning a pointer in the old API. This is no longer
needed.
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
return false;
}
-void *ma_insert(struct ma_state *mas, void *entry)
+void ma_insert(struct ma_state *mas, void *entry)
{
unsigned char slot = MAPLE_NODE_SLOTS;
struct maple_range_64 *src;
if (mas->node != NULL)
goto exists;
rcu_assign_pointer(mas->tree->ma_root, entry);
- return NULL;
+ return;
}
ma_root_expand(mas, entry);
- return NULL;
+ return;
}
leaf = _mas_walk(mas);
if (mas_is_err(mas))
goto error;
- return NULL;
+ return;
error:
exists:
- return NULL;
+ return;
}
/*