From a026a3fb24980626d036ee1693ee9e70d7bc0829 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 27 Sep 2017 21:15:04 -0600 Subject: instance.c: Removed redundant variable --- instance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'instance.c') 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); -- cgit v1.2.3-70-g09d2