From 4aeadff00f3e7b6ce852d75e8f69a5d361998158 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 26 Jul 2008 23:45:42 +0000 Subject: [PATCH] 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 --- src/system/kernel/vm/vm.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 14515b84db..3458e9425a 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -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); }