SDL_hidapi_xboxone.c: fix bogus 'uninitialized' warning from clang.

The last 'size == 50' check is always true anyway.
This commit is contained in:
Ozkan Sezer 2021-08-13 01:56:56 +03:00
parent cec5a129f5
commit 7aec0b90ee
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ HIDAPI_DriverXboxOne_HandleStatePacket(SDL_Joystick *joystick, SDL_DriverXboxOne
button4_bit = 0x08; button4_bit = 0x08;
paddles_mapped = (data[19] != 0); paddles_mapped = (data[19] != 0);
} else if (size == 50) { } else /* if (size == 50) */{
/* XBox One Elite Series 2 */ /* XBox One Elite Series 2 */
paddle_index = 22; paddle_index = 22;
button1_bit = 0x01; button1_bit = 0x01;