Input: Fix opposite inner 'if' condition leads to a dead code block warning.

Codacy.
This commit is contained in:
lightningterror 2023-09-08 18:14:28 +02:00
parent 2a9c379a1c
commit 6bd1209146
1 changed files with 0 additions and 2 deletions

View File

@ -584,8 +584,6 @@ bool SDLInputSource::OpenDevice(int index, bool is_gamecontroller)
if (!gcontroller && !joystick)
{
Console.Error("(SDLInputSource) Failed to open controller %d", index);
if (gcontroller)
SDL_GameControllerClose(gcontroller);
return false;
}