From dfd2c574d7ced5ce4810a2fb6f52aebd6828bcf1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Aug 2022 22:27:43 -0700 Subject: [PATCH] Removed unused variable --- src/joystick/hidapi/SDL_hidapi_switch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index 71e9eba6a..6edddc3cc 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -1116,8 +1116,6 @@ ReadJoyConControllerType(SDL_HIDAPI_Device *device) device->dev = SDL_hid_open_path(device->path, 0); if (device->dev) { - SwitchSubcommandInputPacket_t *reply = NULL; - if (WriteProprietarySync(ctx, k_eSwitchProprietaryCommandIDs_Status, NULL, 0, SDL_TRUE)) { SwitchProprietaryStatusPacket_t *status = (SwitchProprietaryStatusPacket_t *)&ctx->m_rgucReadBuffer[0];