]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Drop unused devc->ch_enabled.
authorUwe Hermann <redacted>
Wed, 15 Mar 2017 00:45:27 +0000 (01:45 +0100)
committerUwe Hermann <redacted>
Wed, 15 Mar 2017 00:45:27 +0000 (01:45 +0100)
src/hardware/fx2lafw/api.c
src/hardware/fx2lafw/protocol.h

index 4e4c3cfabce53befad346ec69a8e22773056b9c7..872804ec67f5493b4857f9ae41469d72d77077ba 100644 (file)
@@ -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 {
index a0d69c40e4b0e0fcdc4d7bffead17695f0547484..e228c87518371b47def45e60b71129ebb3223dcc 100644 (file)
@@ -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