Change-Id: Ia1d1a2eb9c50c3c1e72f86101e2af5119f744ee0
_E("Failed to get internal storage size");
goto fail;
}
- goto success;
-fail:
g_slist_free_full(paths, free);
- return RESOURCED_ERROR_FAIL;
+ return RESOURCED_ERROR_NONE;
-success:
+fail:
g_slist_free_full(paths, free);
- return RESOURCED_ERROR_NONE;
+ return RESOURCED_ERROR_FAIL;
}
{
struct heart_memory_table * table = (struct heart_memory_table *)value;
- if (!table)
- return;
- free(table);
+ if (table)
+ free(table);
}
static int heart_memory_read_length(char *buf, int count)
if (status == LOWMEM_RECLAIM_DONE)
request_helper_worker(CLEAR_LOGS, MEMPS_LOG_PATH, clear_logs, NULL);
ctl->status = status;
- return;
}
static void *lowmem_reclaim_worker(void *arg)