From f109615be05ae7db05917a68012c6398173399b5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Oct 2018 12:07:21 -0400 Subject: [PATCH] core: Remove unnecessary assert in ArmInterface() CpuCore already does this sort of checking, so we can just call that instead of duplicating the assertions. --- src/core/core.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 3c57a62ec9..7cb86ed922 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -375,8 +375,7 @@ const Kernel::Process* System::CurrentProcess() const { } ARM_Interface& System::ArmInterface(std::size_t core_index) { - ASSERT(core_index < NUM_CPU_CORES); - return impl->cpu_cores[core_index]->ArmInterface(); + return CpuCore(core_index).ArmInterface(); } Cpu& System::CpuCore(std::size_t core_index) {