asix-sigma: Remove an unused variable
This commit is contained in:
parent
8256ed15c6
commit
13262b48c1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue