]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic16/api.c
Minor code cleanup.
[libsigrok.git] / hardware / saleae-logic16 / api.c
index dee3d25cfdd952b88620c30e641ed7c0777ee572..2a493f9012212c125580a0aa99237123a4992307 100644 (file)
@@ -641,9 +641,6 @@ static int configure_channels(const struct sr_dev_inst *sdi)
        struct sr_channel *ch;
        GSList *l;
        uint16_t channel_bit;
-#ifdef WORDS_BIGENDIAN
-       int i;
-#endif
 
        devc = sdi->priv;
 
@@ -670,16 +667,6 @@ static int configure_channels(const struct sr_dev_inst *sdi)
                devc->channel_masks[devc->num_channels++] = channel_bit;
        }
 
-       if (devc->cur_channels & ~0xff) {
-               devc->unitsize = 2;
-       } else {
-#ifdef WORDS_BIGENDIAN
-               for (i = 0; i < devc->num_channels; i++)
-                       devc->channel_masks[i] >>= 8;
-#endif
-               devc->unitsize = 1;
-       }
-
        return SR_OK;
 }