]> sigrok.org Git - libsigrok.git/commitdiff
siglent-sds: Drop unused variable from siglent_sds_read_header function
authormarchelh <redacted>
Sun, 25 Feb 2018 08:20:53 +0000 (09:20 +0100)
committerUwe Hermann <redacted>
Sat, 3 Mar 2018 16:45:21 +0000 (17:45 +0100)
src/hardware/siglent-sds/protocol.c

index 5bf4d3721af02478601beca99e36be20562fbf5a..ab4211a40eff18b69999ba8251d50e046fbd41b0 100644 (file)
@@ -250,7 +250,7 @@ SR_PRIV int siglent_sds_channel_start(const struct sr_dev_inst *sdi)
 }
 
 /* Read the header of a data block. */
-static int siglent_sds_read_header(struct sr_dev_inst *sdi, int channelIndex)
+static int siglent_sds_read_header(struct sr_dev_inst *sdi)
 {
        struct sr_scpi_dev_inst *scpi = sdi->conn;
        struct dev_context *devc = sdi->priv;
@@ -350,7 +350,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data)
                        g_usleep(4900000); /* Sleep for large memory set. */
                }
                sr_dbg("New block header expected.");
-               len = siglent_sds_read_header(sdi, ch->index);
+               len = siglent_sds_read_header(sdi);
                expected_data_bytes = len;
                if (len == 0)
                        /* Still reading the header. */