Removed unused variable

This commit is contained in:
Sam Lantinga 2022-09-26 22:45:01 -07:00
parent 2ccdd0667a
commit db075ff3ba
1 changed files with 0 additions and 2 deletions

View File

@ -979,8 +979,6 @@ VerifyCRC(Uint8 *data, int size)
static SDL_bool static SDL_bool
HIDAPI_DriverPS4_IsPacketValid(SDL_DriverPS4_Context *ctx, Uint8 *data, int size) HIDAPI_DriverPS4_IsPacketValid(SDL_DriverPS4_Context *ctx, Uint8 *data, int size)
{ {
PS4StatePacket_t *packet = NULL;
switch (data[0]) { switch (data[0]) {
case k_EPS4ReportIdUsbState: 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'). /* In the case of a DS4 USB dongle, bit[2] of byte 31 indicates if a DS4 is actually connected (indicated by '0').