From 1669d8b3e562b68eb4b178f45a6b4b79c3a4eb26 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 Aug 2015 03:07:23 +0200 Subject: [PATCH] (Menu) Cleanup --- menu/menu_input.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/menu/menu_input.c b/menu/menu_input.c index d6550efbec..df6b55fea8 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -265,15 +265,9 @@ static void menu_input_poll_bind_get_rested_axes(struct menu_bind_state *state, unsigned a; const input_device_driver_t *joypad = input_driver_get_joypad_driver(); - if (!state) + if (!state || !joypad) return; - if (!joypad) - { - RARCH_ERR("Cannot poll raw joypad state."); - return; - } - /* poll only the relevant port */ /*for (i = 0; i < settings->input.max_users; i++)*/ for (a = 0; a < MENU_MAX_AXES; a++)