mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									26f2820ae3
								
							
						
					
					
						commit
						f77b5dfe81
					
				| @ -854,7 +854,7 @@ ResultCode PageTable::LockForDeviceAddressSpace(VAddr addr, std::size_t size) { | ||||
|     } | ||||
| 
 | ||||
|     block_manager->UpdateLock(addr, size / PageSize, | ||||
|                               [perm](MemoryBlockManager::iterator block, MemoryPermission perm) { | ||||
|                               [](MemoryBlockManager::iterator block, MemoryPermission perm) { | ||||
|                                   block->ShareToDevice(perm); | ||||
|                               }, | ||||
|                               perm); | ||||
| @ -876,7 +876,7 @@ ResultCode PageTable::UnlockForDeviceAddressSpace(VAddr addr, std::size_t size) | ||||
|     } | ||||
| 
 | ||||
|     block_manager->UpdateLock(addr, size / PageSize, | ||||
|                               [perm](MemoryBlockManager::iterator block, MemoryPermission perm) { | ||||
|                               [](MemoryBlockManager::iterator block, MemoryPermission perm) { | ||||
|                                   block->UnshareToDevice(perm); | ||||
|                               }, | ||||
|                               perm); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash