From e7726d8f0120400cc8aecbdbf1c541a0c429ec02 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 14 Dec 2014 12:07:06 +0900 Subject: [PATCH] test_genlist: Remove unused value. This fixes coverity CID 1258428. --- legacy/elementary/src/bin/test_genlist.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c index 1b349e7386..448e4177cf 100644 --- a/legacy/elementary/src/bin/test_genlist.c +++ b/legacy/elementary/src/bin/test_genlist.c @@ -4651,14 +4651,13 @@ test_genlist_focus(void *data EINA_UNUSED, for (rhand = 0; rhand < _gl_focus_objects; rhand++) { unsigned digit1 = lhand * 10 + rhand; - it = elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit1, - NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); + elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit1, + NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); unsigned digit2 = (_gl_focus_objects - lhand -1) * 10 + (_gl_focus_objects - rhand -1); it = elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit2, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); - if (!it_2) it_2 = it; if (rhand == 4) elm_object_item_disabled_set(it, EINA_TRUE);