From d4051fcc2754a05fa2977054432ab14a1a924e82 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 12 Jul 2016 23:10:25 +0200 Subject: [PATCH] Fix 'logically dead code' --- list_special.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/list_special.c b/list_special.c index 60cd0a8ff4..6063450223 100644 --- a/list_special.c +++ b/list_special.c @@ -267,13 +267,8 @@ struct string_list *string_list_new_special(enum string_list_type type, for (i = 0; i < *list_size; i++) { - const char *opt = NULL; - core_info_t *info = (core_info_t*)&core_info[i]; - - if (!info) - goto error; - - opt = info->display_name; + core_info_t *info = (core_info_t*)&core_info[i]; + const char *opt = info->display_name; if (!opt) goto error;