From: Joel Holdsworth Date: Thu, 28 Sep 2017 03:15:04 +0000 (-0600) Subject: instance.c: Removed redundant variable X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a026a3fb24980626d036ee1693ee9e70d7bc0829;p=libsigrokdecode.git instance.c: Removed redundant variable --- diff --git a/instance.c b/instance.c index 9dfc901..81ce3fd 100644 --- a/instance.c +++ b/instance.c @@ -937,7 +937,6 @@ static gboolean at_least_one_condition_matched( static gboolean find_match(struct srd_decoder_inst *di) { - static uint64_t s = 0; uint64_t i, j, num_samples_to_process; GSList *l, *cond; const uint8_t *sample_pos; @@ -968,7 +967,7 @@ static gboolean find_match(struct srd_decoder_inst *di) if (di->abs_cur_samplenum == 0) update_old_pins_array_initial_pins(di); - for (i = 0, s = 0; i < num_samples_to_process; i++, s++, (di->abs_cur_samplenum)++) { + for (i = 0; i < num_samples_to_process; i++, (di->abs_cur_samplenum)++) { sample_pos = di->inbuf + ((di->abs_cur_samplenum - di->abs_start_samplenum) * di->data_unitsize);