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;