From c4bb0958ec8359a237e99ca3ddf0151069ea3101 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 10 Oct 2023 19:26:30 -0400 Subject: [PATCH] Remove pointless if statement --- src/rcore_drm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rcore_drm.c b/src/rcore_drm.c index cfef6a69f..3b688b8a1 100644 --- a/src/rcore_drm.c +++ b/src/rcore_drm.c @@ -1948,11 +1948,7 @@ static void InitGamepad(void) } ioctl(platform.gamepadStreamFd[i], JSIOCGNAME(64), &CORE.Input.Gamepad.name[i]); - - - int axisCount = 0; - if (CORE.Input.Gamepad.ready[i]) ioctl(platform.gamepadStreamFd[i], JSIOCGAXES, &axisCount); - CORE.Input.Gamepad.axisCount = axisCount; + ioctl(platform.gamepadStreamFd[i], JSIOCGAXES, &CORE.Input.Gamepad.axisCount); } } }