Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 21, 2018
1 parent aeea6b9 commit 6b3f11e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/joystick/SDL_joystick.c
Expand Up @@ -582,12 +582,11 @@ SDL_JoystickFromInstanceID(SDL_JoystickID joyid)
SDL_LockJoysticks();
for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
if (joystick->instance_id == joyid) {
SDL_UnlockJoysticks();
return joystick;
break;
}
}
SDL_UnlockJoysticks();
return NULL;
return joystick;
}

/*
Expand Down

0 comments on commit 6b3f11e

Please sign in to comment.