Another minor code clean up, because I'm dumb

This commit is contained in:
Starlet Leonhart 2019-07-02 17:51:34 -04:00
parent f10e4463fe
commit be79abd213
2 changed files with 4 additions and 3 deletions

View File

@ -168,7 +168,8 @@ namespace core::kernel {
{ {
std::pair<int, uint32_t(*)()>* result = &(svcTable[svc]); std::pair<int, uint32_t(*)()>* result = &(svcTable[svc]);
if (result->second) { if (result->second)
{
uint32_t returnCode = result->second(); uint32_t returnCode = result->second();
SetRegister(UC_ARM64_REG_W0, returnCode); SetRegister(UC_ARM64_REG_W0, returnCode);
return returnCode; return returnCode;