proc_view: tidy...

This commit is contained in:
Alastair Poole 2020-05-18 22:31:40 +01:00
parent 6b46fcea2a
commit eb428dc6e5
1 changed files with 6 additions and 6 deletions

View File

@ -278,11 +278,10 @@ _hash_free_cb(void *data)
static void
_thread_info_set(Ui_Process *ui, Proc_Info *proc)
{
Eina_List *l;
Proc_Info *p;
Thread_Info *t;
Elm_Object_Item *it;
Eina_List *threads = NULL;
Eina_List *l, *threads = NULL;
if (!ui->hash_cpu_times)
ui->hash_cpu_times = eina_hash_string_superfast_new(_hash_free_cb);
@ -322,7 +321,8 @@ _thread_info_set(Ui_Process *ui, Proc_Info *proc)
EINA_LIST_FOREACH(threads, l, t)
{
Thread_Info *prev = elm_object_item_data_get(it);
if (prev) _item_del(prev, NULL);
if (prev)
_item_del(prev, NULL);
elm_object_item_data_set(it, t);
elm_genlist_item_update(it);
it = elm_genlist_item_next_get(it);