fx2lafw: Drop unused devc->ch_enabled.
This commit is contained in:
parent
8399f68a3f
commit
5db45cc55d
|
@ -985,13 +985,11 @@ static int configure_channels(const struct sr_dev_inst *sdi)
|
|||
|
||||
g_slist_free(devc->enabled_analog_channels);
|
||||
devc->enabled_analog_channels = NULL;
|
||||
memset(devc->ch_enabled, 0, sizeof(devc->ch_enabled));
|
||||
|
||||
for (l = sdi->channels, p = 0; l; l = l->next, p++) {
|
||||
ch = l->data;
|
||||
if ((p <= NUM_CHANNELS) && (ch->type == SR_CHANNEL_ANALOG)) {
|
||||
num_analog++;
|
||||
devc->ch_enabled[p] = ch->enabled;
|
||||
devc->enabled_analog_channels =
|
||||
g_slist_append(devc->enabled_analog_channels, ch);
|
||||
} else {
|
||||
|
|
|
@ -95,7 +95,6 @@ struct fx2lafw_profile {
|
|||
struct dev_context {
|
||||
const struct fx2lafw_profile *profile;
|
||||
GSList *enabled_analog_channels;
|
||||
gboolean ch_enabled[NUM_CHANNELS];
|
||||
/*
|
||||
* Since we can't keep track of an fx2lafw device after upgrading
|
||||
* the firmware (it renumerates into a different device address
|
||||
|
|
Loading…
Reference in New Issue