2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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
ASSERT(num_pages >= 0);
if (num_pages) {
return ERR_OUT_OF_MEMORY;
}