Remove unnessesary nullptr checks

This commit is contained in:
Frederic Laing
2018-10-25 23:37:36 +02:00
parent e54c9e19f3
commit 369996a1d4
37 changed files with 154 additions and 162 deletions

View File

@@ -240,7 +240,7 @@ ResultVal<VAddr> Process::HeapAllocate(VAddr target, u64 size, VMAPermission per
return ERR_INVALID_ADDRESS;
}
if (heap_memory == nullptr) {
if (heap_memory) {
// Initialize heap
heap_memory = std::make_shared<std::vector<u8>>();
heap_start = heap_end = target;