Fix svace warnings 92/100292/4
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 25 Nov 2016 15:31:50 +0000 (16:31 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 2 Dec 2016 11:11:35 +0000 (12:11 +0100)
Change-Id: Ie99dd22432ee49e22ee842e6f7b74648358b86cf

inc/util.h
src/main.c

index d3bd498..b78e913 100644 (file)
@@ -47,7 +47,6 @@ typedef enum {
        TASK_MGR_ERROR_DB_FAILED = -2,
        TASK_MGR_ERROR_OUT_OF_MEMORY = -3,
        TASK_MGR_ERROR_INVALID_PARAMETER = -4,
-       TASK_MGR_ERROR_NO_DATA = -5,
 } task_mgr_error_e;
 
 /**
index 2e365d5..eec214d 100644 (file)
@@ -155,16 +155,10 @@ static Eina_Bool _list_timer_cb(void *data)
        }
        scroller_push_item(main_info.scroller, clear_item);
 
-       if (TASK_MGR_ERROR_NO_DATA == ret) {
-               _D("There is no application");
-               item_clear_all_disabled_set(main_info.scroller);
-       } else if (TASK_MGR_ERROR_NONE != ret) {
-               _E("Fail to create pkglist");
-               goto END;
+       if (TASK_MGR_ERROR_NONE != scroller_push_all_item(main_info.scroller, main_info.pkg_list)) {
+               _E("scroller_push_all_item failed");
        }
 
-       goto_if(TASK_MGR_ERROR_NONE != scroller_push_all_item(main_info.scroller, main_info.pkg_list), END);
-
 END:
        evas_object_data_del(main_info.win, PRIVATE_DATA_KEY_LIST_TIMER);
        return ECORE_CALLBACK_CANCEL;