src/joystick/android/SDL_sysjoystick.c
changeset 7930 5a1a7cdf3fa2
parent 7929 e3b38a3cdd60
child 7944 f19c0aca56aa
     1.1 --- a/src/joystick/android/SDL_sysjoystick.c	Sun Nov 10 14:44:50 2013 +0100
     1.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Sun Nov 10 14:47:05 2013 +0100
     1.3 @@ -170,8 +170,7 @@
     1.4          SYS_Joysticks[device_index] = joystick;
     1.5          return 0;
     1.6      } else {
     1.7 -        SDL_SetError("No joystick available with that index");
     1.8 -        return (-1);
     1.9 +        return SDL_SetError("No joystick available with that index");
    1.10      }
    1.11  }
    1.12