From: Bert Vermeulen Date: Thu, 2 Oct 2014 11:55:21 +0000 (+0200) Subject: input/binary: Code cleanup. X-Git-Tag: libsigrok-0.4.0~906 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=577a9fe4235d5b090aaec562ea8013c79712da7e;p=libsigrok.git input/binary: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/input/binary.c b/src/input/binary.c index 5862e36e..813cf4a4 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -97,7 +97,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);