From dc7e8bc52becc2c6b0b134400482c7b6cc2c76cb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 29 Nov 2015 16:35:51 +0100 Subject: [PATCH] Cleanup android_joypad_query_pad --- input/drivers_joypad/android_joypad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/input/drivers_joypad/android_joypad.c b/input/drivers_joypad/android_joypad.c index aa01413592..a2e929cf1a 100644 --- a/input/drivers_joypad/android_joypad.c +++ b/input/drivers_joypad/android_joypad.c @@ -153,9 +153,7 @@ static void android_joypad_poll(void) static bool android_joypad_query_pad(unsigned pad) { - driver_t *driver = driver_get_ptr(); - android_input_t *android = driver ? (android_input_t*)driver->input_data : NULL; - return (pad < MAX_USERS && pad < android->pads_connected); + return (pad < MAX_USERS); }