From 0ab7624cdec6a7a7802cc055735d24104f6e3b7d Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 10 Nov 2013 14:47:05 +0100 Subject: [PATCH] Changed function to return -1 through SDL_Error() instead of plain -1. --- src/joystick/android/SDL_sysjoystick.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/joystick/android/SDL_sysjoystick.c b/src/joystick/android/SDL_sysjoystick.c index 4fda0f452..012512991 100644 --- a/src/joystick/android/SDL_sysjoystick.c +++ b/src/joystick/android/SDL_sysjoystick.c @@ -170,8 +170,7 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) SYS_Joysticks[device_index] = joystick; return 0; } else { - SDL_SetError("No joystick available with that index"); - return (-1); + return SDL_SetError("No joystick available with that index"); } }