From: Bert Vermeulen Date: Thu, 2 Oct 2014 11:55:37 +0000 (+0200) Subject: input/chronovu_la8: Code cleanup. X-Git-Tag: libsigrok-0.4.0~905 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=74e1f6f53c47889ddfa67a35703d6f13e54a1df4;p=libsigrok.git input/chronovu_la8: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/input/chronovu_la8.c b/src/input/chronovu_la8.c index 1d7e16ad..55331df8 100644 --- a/src/input/chronovu_la8.c +++ b/src/input/chronovu_la8.c @@ -109,7 +109,6 @@ static int process_buffer(struct sr_input *in) /* Cut off at multiple of unitsize. */ chunk_size = in->buf->len / logic.unitsize * logic.unitsize; - chunk = 0; for (i = 0; i < chunk_size; i += chunk) { logic.data = in->buf->str + i; chunk = MIN(MAX_CHUNK_SIZE, chunk_size - i);