Removed pointless check. vm_page_allocate_page() only returns NULL, when
an invalid page state was supplied. The comment was misleading too, as the pages weren't reserved upfront. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26650 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1714,11 +1714,6 @@ vm_create_anonymous_area(team_id team, const char *name, void **address,
|
||||
continue;
|
||||
#endif
|
||||
vm_page *page = vm_page_allocate_page(PAGE_STATE_CLEAR, false);
|
||||
if (page == NULL) {
|
||||
// this shouldn't really happen, as we reserve the memory upfront
|
||||
panic("couldn't fulfill B_FULL lock!");
|
||||
}
|
||||
|
||||
cache->InsertPage(page, offset);
|
||||
vm_map_page(area, page, address, protection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user