From 63d4531f4947e46610fb26fc57fd15f1283416f4 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 21 Jul 2020 16:02:31 +0200 Subject: multiload: the initialization of the variable is not really used --- multiload/load-graph.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'multiload') diff --git a/multiload/load-graph.c b/multiload/load-graph.c index f1d1a9d0..bf004394 100644 --- a/multiload/load-graph.c +++ b/multiload/load-graph.c @@ -102,10 +102,9 @@ load_graph_draw (LoadGraph *g) for (i = 0; i < g->draw_width; i++) { g->pos [i] = g->draw_height - 1; - combined = 0; - combined += g->data[i][0]; - combined += g->data[i][1]; - combined += g->data[i][2]; + combined = g->data[i][0] + + g->data[i][1] + + g->data[i][2]; if (combined > maxnet) maxnet = combined; } -- cgit v1.2.1