Skip to content

Commit

Permalink
Removed redundant NULL check in test program.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 21, 2015
1 parent b00214c commit 4f00dda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/testgamecontroller.c
Expand Up @@ -294,10 +294,8 @@ main(int argc, char *argv[])
while (keepGoing) {
if (gamecontroller == NULL) {
if (!reportederror) {
if (gamecontroller == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
retcode = 1;
}
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
retcode = 1;
keepGoing = SDL_FALSE;
reportederror = SDL_TRUE;
}
Expand Down

0 comments on commit 4f00dda

Please sign in to comment.