From fbc4a5cac251b96ca7d55c1722a5ff5a8a644b7b Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 26 Nov 2022 20:51:34 +0100 Subject: [PATCH] PAD: Fix variable is assigned a value that is never used warnings. Codacy. --- pcsx2/PAD/Windows/PAD.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pcsx2/PAD/Windows/PAD.cpp b/pcsx2/PAD/Windows/PAD.cpp index 03581c6f7a..612551f123 100644 --- a/pcsx2/PAD/Windows/PAD.cpp +++ b/pcsx2/PAD/Windows/PAD.cpp @@ -836,17 +836,15 @@ struct QueryInfo s32 PADinit() { - const u32 flags = 3; // Note: Won't load settings if already loaded. if (LoadSettings() < 0) { return -1; } - int port = (flags & 3); for (int i = 2; i > 0; i--) { - port = i; + int port = i; port--; for (int slot = 0; slot < 4; slot++)