From: Gerhard Sittig Date: Fri, 26 May 2017 00:11:05 +0000 (+0200) Subject: asix-sigma: Remove an unused variable X-Git-Tag: libsigrok-0.5.0~35 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=13262b48c181ae380e2029982197649cb6343b9f;p=libsigrok.git asix-sigma: Remove an unused variable --- diff --git a/src/hardware/asix-sigma/api.c b/src/hardware/asix-sigma/api.c index 5bcce1d9..99c1ef14 100644 --- a/src/hardware/asix-sigma/api.c +++ b/src/hardware/asix-sigma/api.c @@ -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; diff --git a/src/hardware/asix-sigma/protocol.c b/src/hardware/asix-sigma/protocol.c index e0709cae..1f2b2a63 100644 --- a/src/hardware/asix-sigma/protocol.c +++ b/src/hardware/asix-sigma/protocol.c @@ -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; } diff --git a/src/hardware/asix-sigma/protocol.h b/src/hardware/asix-sigma/protocol.h index cd1a8b8d..388b44bc 100644 --- a/src/hardware/asix-sigma/protocol.h +++ b/src/hardware/asix-sigma/protocol.h @@ -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;