Removed redundant NULL check in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 21 May 2015 21:27:53 +0200
changeset 9611c23b2fa8d4c2
parent 9610 27485b58df22
child 9612 9b60f0a1cae8
Removed redundant NULL check in test program.
test/testgamecontroller.c
     1.1 --- a/test/testgamecontroller.c	Thu May 21 21:25:32 2015 +0200
     1.2 +++ b/test/testgamecontroller.c	Thu May 21 21:27:53 2015 +0200
     1.3 @@ -294,10 +294,8 @@
     1.4              while (keepGoing) {
     1.5                  if (gamecontroller == NULL) {
     1.6                      if (!reportederror) {
     1.7 -                        if (gamecontroller == NULL) {
     1.8 -                            SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
     1.9 -                            retcode = 1;
    1.10 -                        }
    1.11 +                        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
    1.12 +                        retcode = 1;
    1.13                          keepGoing = SDL_FALSE;
    1.14                          reportederror = SDL_TRUE;
    1.15                      }