diff options
author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2017-09-27 21:15:04 -0600 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-11-11 18:52:02 +0100 |
commit | a026a3fb24980626d036ee1693ee9e70d7bc0829 (patch) | |
tree | d647aa9b73c02835cdcec034f2b4170095ecdf1d /instance.c | |
parent | 35716e66f09346f5aa0c21ee74e58b7f3c6baa4c (diff) | |
download | libsigrokdecode-a026a3fb24980626d036ee1693ee9e70d7bc0829.tar.gz libsigrokdecode-a026a3fb24980626d036ee1693ee9e70d7bc0829.zip |
instance.c: Removed redundant variable
Diffstat (limited to 'instance.c')
-rw-r--r-- | instance.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |