mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Eliminate 'where' argument, we don't use it.
MFC after: 3 days
This commit is contained in:
parent
8ac2669cc8
commit
837a617728
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236249
@ -173,7 +173,6 @@ space_map_add(space_map_t *sm, uint64_t start, uint64_t size)
|
|||||||
void
|
void
|
||||||
space_map_remove(space_map_t *sm, uint64_t start, uint64_t size)
|
space_map_remove(space_map_t *sm, uint64_t start, uint64_t size)
|
||||||
{
|
{
|
||||||
avl_index_t where;
|
|
||||||
space_seg_t ssearch, *ss, *newseg;
|
space_seg_t ssearch, *ss, *newseg;
|
||||||
uint64_t end = start + size;
|
uint64_t end = start + size;
|
||||||
int left_over, right_over;
|
int left_over, right_over;
|
||||||
@ -185,7 +184,7 @@ space_map_remove(space_map_t *sm, uint64_t start, uint64_t size)
|
|||||||
|
|
||||||
ssearch.ss_start = start;
|
ssearch.ss_start = start;
|
||||||
ssearch.ss_end = end;
|
ssearch.ss_end = end;
|
||||||
ss = avl_find(&sm->sm_root, &ssearch, &where);
|
ss = avl_find(&sm->sm_root, &ssearch, NULL);
|
||||||
|
|
||||||
/* Make sure we completely overlap with someone */
|
/* Make sure we completely overlap with someone */
|
||||||
if (ss == NULL) {
|
if (ss == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user