yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

page_table: Remove unused captures

Any time the lambda function is called, the permission being used in the
capture would be passed in as an argument to the lambda, so the capture
is unnecessary.
This commit is contained in:
Lioncash 2020-04-23 17:24:14 -04:00
parent 26f2820ae3
commit f77b5dfe81
1 changed files with 2 additions and 2 deletions

View File

@ -854,7 +854,7 @@ ResultCode PageTable::LockForDeviceAddressSpace(VAddr addr, std::size_t size) {
} }
block_manager->UpdateLock(addr, size / PageSize, block_manager->UpdateLock(addr, size / PageSize,
[perm](MemoryBlockManager::iterator block, MemoryPermission perm) { [](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->ShareToDevice(perm); block->ShareToDevice(perm);
}, },
perm); perm);
@ -876,7 +876,7 @@ ResultCode PageTable::UnlockForDeviceAddressSpace(VAddr addr, std::size_t size)
} }
block_manager->UpdateLock(addr, size / PageSize, block_manager->UpdateLock(addr, size / PageSize,
[perm](MemoryBlockManager::iterator block, MemoryPermission perm) { [](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->UnshareToDevice(perm); block->UnshareToDevice(perm);
}, },
perm); perm);