aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_capabilities.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-06 09:12:58 -0400
committerGitHub <noreply@github.com>2023-09-06 09:12:58 -0400
commita0ca0f7bb090e55ae64d7b8f414fade8b8ad499a (patch)
treedd83795955a607612d27f324bdb1bfab63de2c38 /src/core/hle/kernel/k_capabilities.cpp
parent925f6c4248f08ac4b65f914aae53e27c0931e3ff (diff)
parent7f0de0f20464f4ab743abc9fb63acdbe26cad716 (diff)
Merge pull request #11434 from danilaml/fix-warnings
msvc: set warning level to /W4 globally
Diffstat (limited to 'src/core/hle/kernel/k_capabilities.cpp')
-rw-r--r--src/core/hle/kernel/k_capabilities.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp
index 90e4e8fb08..e7da7a21d4 100644
--- a/src/core/hle/kernel/k_capabilities.cpp
+++ b/src/core/hle/kernel/k_capabilities.cpp
@@ -156,7 +156,6 @@ Result KCapabilities::MapIoPage_(const u32 cap, KPageTable* page_table) {
const u64 phys_addr = MapIoPage{cap}.address.Value() * PageSize;
const size_t num_pages = 1;
const size_t size = num_pages * PageSize;
- R_UNLESS(num_pages != 0, ResultInvalidSize);
R_UNLESS(phys_addr < phys_addr + size, ResultInvalidAddress);
R_UNLESS(((phys_addr + size - 1) & ~PhysicalMapAllowedMask) == 0, ResultInvalidAddress);