]> sigrok.org Git - libsigrokdecode.git/commitdiff
instance.c: Removed redundant variable
authorJoel Holdsworth <redacted>
Thu, 28 Sep 2017 03:15:04 +0000 (21:15 -0600)
committerUwe Hermann <redacted>
Sat, 11 Nov 2017 17:52:02 +0000 (18:52 +0100)
instance.c

index 9dfc90195ff317ee4bdbe770405185f5bf74fb83..81ce3fd33fbc8b23d6665b098a1b3963c732a65a 100644 (file)
@@ -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);