From: marchelh Date: Sun, 25 Feb 2018 08:20:53 +0000 (+0100) Subject: siglent-sds: Drop unused variable from siglent_sds_read_header function X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=fe06061d96023dd6c9a6c0df60c22de8d25fe1f0 siglent-sds: Drop unused variable from siglent_sds_read_header function --- diff --git a/src/hardware/siglent-sds/protocol.c b/src/hardware/siglent-sds/protocol.c index 5bf4d372..ab4211a4 100644 --- a/src/hardware/siglent-sds/protocol.c +++ b/src/hardware/siglent-sds/protocol.c @@ -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. */