PAD: Fix variable is assigned a value that is never used warnings.

Codacy.
This commit is contained in:
lightningterror 2022-11-26 20:51:34 +01:00
parent 8b01fb0bcf
commit fbc4a5cac2
1 changed files with 1 additions and 3 deletions

View File

@ -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++)