mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 20:19:00 +02:00
misc: chore: Merge duplicated 'if' branches
This commit is contained in:
@@ -409,12 +409,8 @@ namespace Ryujinx.Cpu.Jit
|
||||
|
||||
for (int page = 0; page < pages - 1; page++)
|
||||
{
|
||||
if (!ValidateAddress(va + PageSize))
|
||||
{
|
||||
return contiguousSize;
|
||||
}
|
||||
|
||||
if (GetPhysicalAddressInternal(va) + PageSize != GetPhysicalAddressInternal(va + PageSize))
|
||||
if (!ValidateAddress(va + PageSize) ||
|
||||
GetPhysicalAddressInternal(va) + PageSize != GetPhysicalAddressInternal(va + PageSize))
|
||||
{
|
||||
return contiguousSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user