From db075ff3ba74343aed64ad0be27e1479ef93ed48 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 26 Sep 2022 22:45:01 -0700 Subject: [PATCH] Removed unused variable --- src/joystick/hidapi/SDL_hidapi_ps4.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_ps4.c b/src/joystick/hidapi/SDL_hidapi_ps4.c index bc5821bee..05ce68ca5 100644 --- a/src/joystick/hidapi/SDL_hidapi_ps4.c +++ b/src/joystick/hidapi/SDL_hidapi_ps4.c @@ -979,8 +979,6 @@ VerifyCRC(Uint8 *data, int size) static SDL_bool HIDAPI_DriverPS4_IsPacketValid(SDL_DriverPS4_Context *ctx, Uint8 *data, int size) { - PS4StatePacket_t *packet = NULL; - switch (data[0]) { case k_EPS4ReportIdUsbState: /* In the case of a DS4 USB dongle, bit[2] of byte 31 indicates if a DS4 is actually connected (indicated by '0').