Coverity doesn't understand retro_assert and these checks are

superfluous anyway
This commit is contained in:
twinaphex 2016-10-26 09:53:15 +02:00
parent 01c6748f72
commit 45688b2a9d
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ void string_list_set(struct string_list *list,
unsigned idx, const char *str)
{
free(list->elems[idx].data);
retro_assert(list->elems[idx].data = strdup(str));
list->elems[idx].data = strdup(str);
}
/**

View File

@ -256,8 +256,8 @@ void menu_display_deinit(void)
bool menu_display_init(void)
{
retro_assert((menu_display_msg_queue = msg_queue_new(8)) != NULL);
menu_disp_ca.allocated = 0;
menu_display_msg_queue = msg_queue_new(8);
menu_disp_ca.allocated = 0;
return true;
}