From f42647426bb0896d98f9c2a868856d0e9db7d624 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Fri, 24 Jun 2022 18:00:49 +0200 Subject: [PATCH] IOP: Cleanup variable scope. Codacy. --- pcsx2/ps2/Iop/PsxBios.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pcsx2/ps2/Iop/PsxBios.cpp b/pcsx2/ps2/Iop/PsxBios.cpp index 9f24b14266..6a738316cc 100644 --- a/pcsx2/ps2/Iop/PsxBios.cpp +++ b/pcsx2/ps2/Iop/PsxBios.cpp @@ -28,10 +28,8 @@ static unsigned psxout_repeat; static void flush_stdout(bool closing = false) { - size_t linelen; - while (!psxout_buf.empty()) { - linelen = psxout_buf.find_first_of("\n\0", 0, 2); + size_t linelen = psxout_buf.find_first_of("\n\0", 0, 2); if (linelen == std::string::npos) { if (!closing) return;