mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Remove unnecessary code
Since I've removed those two asserts, these two lines of code effectively do nothing.
This commit is contained in:
parent
fdff2fc47b
commit
1dcdc53ca4
@ -227,7 +227,6 @@ int MemoryManager::PoolReserve(void** out_addr, VAddr virtual_addr, size_t size,
|
|||||||
if (vma.IsMapped() || remaining_size < size) {
|
if (vma.IsMapped() || remaining_size < size) {
|
||||||
UnmapMemoryImpl(mapped_addr, size);
|
UnmapMemoryImpl(mapped_addr, size);
|
||||||
vma = FindVMA(mapped_addr)->second;
|
vma = FindVMA(mapped_addr)->second;
|
||||||
remaining_size = vma.base + vma.size - mapped_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +269,6 @@ int MemoryManager::Reserve(void** out_addr, VAddr virtual_addr, size_t size, Mem
|
|||||||
if (vma.IsMapped() || remaining_size < size) {
|
if (vma.IsMapped() || remaining_size < size) {
|
||||||
UnmapMemoryImpl(mapped_addr, size);
|
UnmapMemoryImpl(mapped_addr, size);
|
||||||
vma = FindVMA(mapped_addr)->second;
|
vma = FindVMA(mapped_addr)->second;
|
||||||
remaining_size = vma.base + vma.size - mapped_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user