mem: remove non-compliant section
This commit is contained in:
parent
062d14bde3
commit
758d120903
1 changed files with 3 additions and 4 deletions
|
|
@ -261,19 +261,18 @@ void buddy_free(struct mem_region_header *head, paddr_t paddr)
|
||||||
struct buddy_free_list *cur = head->flist;
|
struct buddy_free_list *cur = head->flist;
|
||||||
|
|
||||||
while (cur != NULL) {
|
while (cur != NULL) {
|
||||||
if(cur < flist && (cur->next > flist || cur->next == NULL)) {
|
if (cur < flist && (cur->next > flist || cur->next == NULL)) {
|
||||||
flist->next = cur->next;
|
flist->next = cur->next;
|
||||||
flist->prev = cur;
|
flist->prev = cur;
|
||||||
cur->next = flist;
|
cur->next = flist;
|
||||||
|
|
||||||
if(cur->next != NULL)
|
if (cur->next != NULL)
|
||||||
cur->next->prev = flist;
|
cur->next->prev = flist;
|
||||||
|
|
||||||
goto while_out;
|
break;
|
||||||
}
|
}
|
||||||
cur = cur->next;
|
cur = cur->next;
|
||||||
}
|
}
|
||||||
while_out:
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue