Removed redundant NULL check in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 21 May 2015 21:27:53 +0200
changeset 9611 c23b2fa8d4c2
parent 9610 27485b58df22
child 9612 9b60f0a1cae8
Removed redundant NULL check in test program.
test/testgamecontroller.c
--- a/test/testgamecontroller.c	Thu May 21 21:25:32 2015 +0200
+++ b/test/testgamecontroller.c	Thu May 21 21:27:53 2015 +0200
@@ -294,10 +294,8 @@
             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;
                     }