From 9e255979439671854ee5f0c88cf628925b0b8284 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 6 May 2017 18:00:44 +0200 Subject: [PATCH] Prevent coverity warning --- menu/menu_setting.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index e6fe094ee4..c8f76e1a59 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -1340,11 +1340,8 @@ static int setting_action_ok_bind_defaults(void *data, bool wraparound) def_binds = (setting->index_offset) ? retro_keybinds_rest : retro_keybinds_1; - if (!target) - return -1; - - lim.min = MENU_SETTINGS_BIND_BEGIN; - lim.max = MENU_SETTINGS_BIND_LAST; + lim.min = MENU_SETTINGS_BIND_BEGIN; + lim.max = MENU_SETTINGS_BIND_LAST; menu_input_key_bind_set_min_max(&lim);