From: Uwe Hermann Date: Wed, 15 Mar 2017 00:45:27 +0000 (+0100) Subject: fx2lafw: Drop unused devc->ch_enabled. X-Git-Tag: libsigrok-0.5.0~86 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5db45cc55d9155f1def688f27ac7ebfd3d7f0069;p=libsigrok.git fx2lafw: Drop unused devc->ch_enabled. --- diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 4e4c3cfa..872804ec 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -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 { diff --git a/src/hardware/fx2lafw/protocol.h b/src/hardware/fx2lafw/protocol.h index a0d69c40..e228c875 100644 --- a/src/hardware/fx2lafw/protocol.h +++ b/src/hardware/fx2lafw/protocol.h @@ -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