mem: remove non-compliant section

This commit is contained in:
Michael Shaw 2023-04-12 19:09:20 -04:00
commit 758d120903

View file

@ -261,19 +261,18 @@ void buddy_free(struct mem_region_header *head, paddr_t paddr)
struct buddy_free_list *cur = head->flist;
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->prev = cur;
cur->next = flist;
if(cur->next != NULL)
if (cur->next != NULL)
cur->next->prev = flist;
goto while_out;
break;
}
cur = cur->next;
}
while_out:
}
}