core: hle: kernel: KPageTable: SetMemoryAttribute: Various cleanup.
This commit is contained in:
		| @@ -860,8 +860,9 @@ ResultCode KPageTable::SetMemoryAttribute(VAddr addr, std::size_t size, u32 mask | |||||||
|         AttributeTestMask, KMemoryAttribute::None, ~AttributeTestMask)); |         AttributeTestMask, KMemoryAttribute::None, ~AttributeTestMask)); | ||||||
|  |  | ||||||
|     // Determine the new attribute. |     // Determine the new attribute. | ||||||
|     const auto new_attr = ((old_attr & static_cast<KMemoryAttribute>(~mask)) | |     const KMemoryAttribute new_attr = | ||||||
|                            static_cast<KMemoryAttribute>(attr & mask)); |         static_cast<KMemoryAttribute>(((old_attr & static_cast<KMemoryAttribute>(~mask)) | | ||||||
|  |                                        static_cast<KMemoryAttribute>(attr & mask))); | ||||||
|  |  | ||||||
|     // Perform operation. |     // Perform operation. | ||||||
|     this->Operate(addr, num_pages, old_perm, OperationType::ChangePermissionsAndRefresh); |     this->Operate(addr, num_pages, old_perm, OperationType::ChangePermissionsAndRefresh); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user