misc: chore: Merge duplicated 'if' branches

This commit is contained in:
KeatonTheBot committed 2025-09-24 13:26:50 -05:00
1 parent 6e5bd0c9f2
commit 9c37a557dd
22 files changed
+77 -313

No files matched your search

@@ -262,12 +262,8 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool
return UpdateResult.Success;
}
if (inParameter.CpuAddress == 0 || (inParameter.CpuAddress % PageSize) != 0)
{
return UpdateResult.InvalidParameter;
}
if (inParameter.Size == 0 || (inParameter.Size % PageSize) != 0)
if (inParameter.CpuAddress == 0 || (inParameter.CpuAddress % PageSize) != 0 ||
inParameter.Size == 0 || (inParameter.Size % PageSize) != 0)
{
return UpdateResult.InvalidParameter;
}