Fixed code style
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 Aug 2018 21:18:56 -0700
changeset 12122a0c1c1738ee4
parent 12121 4358e537000a
child 12123 81021ad636c7
Fixed code style
src/joystick/SDL_joystick.c
     1.1 --- a/src/joystick/SDL_joystick.c	Sat Aug 18 12:30:04 2018 +0100
     1.2 +++ b/src/joystick/SDL_joystick.c	Mon Aug 20 21:18:56 2018 -0700
     1.3 @@ -582,12 +582,11 @@
     1.4      SDL_LockJoysticks();
     1.5      for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
     1.6          if (joystick->instance_id == joyid) {
     1.7 -            SDL_UnlockJoysticks();
     1.8 -            return joystick;
     1.9 +            break;
    1.10          }
    1.11      }
    1.12      SDL_UnlockJoysticks();
    1.13 -    return NULL;
    1.14 +    return joystick;
    1.15  }
    1.16  
    1.17  /*