memory_manager: Remove useless assertion

num_pages is an std::size_t. It will always be >= 0
This commit is contained in:
David Marcec 2020-06-25 16:35:58 +10:00
parent 2f2df9a4a7
commit 38868e5750

View File

@ -139,7 +139,6 @@ ResultCode MemoryManager::Allocate(PageLinkedList& page_list, std::size_t num_pa
} }
// Only succeed if we allocated as many pages as we wanted // Only succeed if we allocated as many pages as we wanted
ASSERT(num_pages >= 0);
if (num_pages) { if (num_pages) {
return ERR_OUT_OF_MEMORY; return ERR_OUT_OF_MEMORY;
} }