]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Remove an unused variable
authorGerhard Sittig <redacted>
Fri, 26 May 2017 00:11:05 +0000 (02:11 +0200)
committerUwe Hermann <redacted>
Fri, 26 May 2017 20:48:33 +0000 (22:48 +0200)
src/hardware/asix-sigma/api.c
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h

index 5bcce1d9ac3ced56d068dece5803d5588d1b7745..99c1ef143ffce470954745e4717d7813773aa45a 100644 (file)
@@ -102,7 +102,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
        sr_info("Found ASIX SIGMA - Serial: %s", serial_txt);
 
        devc->cur_samplerate = samplerates[0];
-       devc->period_ps = 0;
        devc->limit_msec = 0;
        devc->limit_samples = 0;
        devc->cur_firmware = -1;
index e0709cae31b500ee63db69dabb4b353dba0d14c1..1f2b2a63d49fc678b9d062c20fa92f5fb950ed23 100644 (file)
@@ -590,7 +590,6 @@ SR_PRIV int sigma_set_samplerate(const struct sr_dev_inst *sdi, uint64_t sampler
         */
        if (ret == SR_OK) {
                devc->cur_samplerate = samplerate;
-               devc->period_ps = 1000000000000ULL / samplerate;
                devc->samples_per_event = 16 / devc->num_channels;
                devc->state.state = SIGMA_IDLE;
        }
index cd1a8b8d8bdba8dfa47fe473fbde380a49eb70fa..388b44bc9f659e0b96838dce8f35fda368781357 100644 (file)
@@ -259,7 +259,6 @@ struct sigma_state {
 struct dev_context {
        struct ftdi_context ftdic;
        uint64_t cur_samplerate;
-       uint64_t period_ps;
        uint64_t limit_msec;
        uint64_t limit_samples;
        uint64_t sent_samples;