Skip to content
Snippets Groups Projects
Commit c3ac7aa5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "datatop: remove unused variables"

parents ad3f8487 3b47d981
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,10 @@ static int get_number_of_values(struct dtop_data_point_gatherer *dpg)
read = dt_read_file(dpg->file, &data, DTOP_GEN_SIZE);
line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0);
if (read == 0) {
return 0;
}
if (line_len < 1) {
dt_free(&data);
return 0;
......
......@@ -219,7 +219,7 @@ static void construct_stat_file_dpg(struct dtop_data_point
*/
int dtop_stat_search(struct dtop_stat_vars *storage)
{
int i, k, n, sum;
int i, n, sum;
char *data;
int *line_len = malloc(sizeof(int) * storage->line_count);
int read;
......@@ -297,7 +297,6 @@ int dtop_stat_search(struct dtop_stat_vars *storage)
count++;
}
}
k = 0;
/* Calls dpg constructor, dpg will point to the dp struct */
construct_stat_file_dpg(data_points, storage, dp_count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment