Fixed code style

This commit is contained in:
Sam Lantinga 2018-08-20 21:18:56 -07:00
parent aeea6b9b1f
commit 6b3f11e2a3

View File

@ -582,12 +582,11 @@ SDL_JoystickFromInstanceID(SDL_JoystickID joyid)
SDL_LockJoysticks(); SDL_LockJoysticks();
for (joystick = SDL_joysticks; joystick; joystick = joystick->next) { for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
if (joystick->instance_id == joyid) { if (joystick->instance_id == joyid) {
SDL_UnlockJoysticks(); break;
return joystick;
} }
} }
SDL_UnlockJoysticks(); SDL_UnlockJoysticks();
return NULL; return joystick;
} }
/* /*