From d7e09167fad714a90ba724f4d1c45fa1876f8ba9 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:59:46 +0200 Subject: [PATCH] iMMI: Cleanup variable scope. Codacy. --- pcsx2/x86/iMMI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcsx2/x86/iMMI.cpp b/pcsx2/x86/iMMI.cpp index 15f681633e..a80fd4b5f4 100644 --- a/pcsx2/x86/iMMI.cpp +++ b/pcsx2/x86/iMMI.cpp @@ -1325,8 +1325,7 @@ void recPADSBH() EE::Profiler.EmitOp(eeOpcode::PADSBH); - int info = eeRecompileCodeXMM(XMMINFO_READS | XMMINFO_READT | XMMINFO_WRITED); - int t0reg; + const int info = eeRecompileCodeXMM(XMMINFO_READS | XMMINFO_READT | XMMINFO_WRITED); if (EEREC_S == EEREC_T) { @@ -1338,7 +1337,7 @@ void recPADSBH() } else { - t0reg = _allocTempXMMreg(XMMT_INT, -1); + const int t0reg = _allocTempXMMreg(XMMT_INT, -1); xMOVDQA(xRegisterSSE(t0reg), xRegisterSSE(EEREC_T));