From 23538b3dc8d3a581f9cf3ca3cc032f82a192c87e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Sep 2015 00:35:55 +0200 Subject: [PATCH] Cleanup --- menu/cbs/menu_cbs_ok.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 188ef78a5e..031d170b37 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1133,9 +1133,9 @@ static int action_ok_lookup_setting(const char *path, static int action_ok_rdb_entry_submenu(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { - int ret; union string_list_elem_attr attr; char new_label[PATH_MAX_LENGTH]; + int ret = -1; menu_displaylist_info_t info = {0}; char *rdb = NULL; int len = 0; @@ -1149,17 +1149,11 @@ static int action_ok_rdb_entry_submenu(const char *path, str_list = string_split(label, "|"); if (!str_list) - { - ret = -1; goto end; - } str_list2 = string_list_new(); if (!str_list2) - { - ret = -1; goto end; - } /* element 0 : label * element 1 : value @@ -1177,10 +1171,7 @@ static int action_ok_rdb_entry_submenu(const char *path, rdb = (char*)calloc(len, sizeof(char)); if (!rdb) - { - ret = -1; goto end; - } string_list_join_concat(rdb, len, str_list2, "|");