From d05b1a860606e078eed77722d8a0c62850ee39af Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Thu, 4 May 2017 21:34:07 +0200 Subject: [PATCH] output/csv: Nit, remove an unused loop iteration variable The i variable is not used in the bottom loop in gen_header(). Remove it to not obfuscate the purpose of the iteration. --- src/output/csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/csv.c b/src/output/csv.c index 831208dc..2be4db37 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -260,7 +260,7 @@ static GString *gen_header(const struct sr_output *o, g_string_append_printf(header, "%s Channels (%d/%d):", ctx->comment, ctx->num_analog_channels + ctx->num_logic_channels, num_channels); - for (i = 0, l = o->sdi->channels; l; l = l->next, i++) { + for (l = o->sdi->channels; l; l = l->next) { ch = l->data; if (ch->enabled) g_string_append_printf(header, " %s,", ch->name);