From: Soeren Apel Date: Sat, 27 Sep 2014 19:56:18 +0000 (+0200) Subject: Remove sdi->index from openbench-logic-sniffer and pipistrello-ols X-Git-Tag: libsigrok-0.4.0~931 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=71580ef1f3cf1a5979a2c52e9819de34d525ecbf;p=libsigrok.git Remove sdi->index from openbench-logic-sniffer and pipistrello-ols --- diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index a3d65307..ad1dece4 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -173,7 +173,6 @@ static GSList *scan(GSList *options) if (g_poll(&probefd, 1, 10) > 0) { /* Got metadata. */ sdi = get_metadata(serial); - sdi->index = 0; devc = sdi->priv; } else { /* Not an OLS -- some other board that uses the sump protocol. */ diff --git a/src/hardware/pipistrello-ols/api.c b/src/hardware/pipistrello-ols/api.c index 9287509f..2db23fd0 100644 --- a/src/hardware/pipistrello-ols/api.c +++ b/src/hardware/pipistrello-ols/api.c @@ -185,7 +185,6 @@ static GSList *scan(GSList *options) /* Parse the metadata. */ sdi = p_ols_get_metadata((uint8_t *)buf, bytes_read, devc); - sdi->index = 0; /* Configure samplerate and divider. */ if (p_ols_set_samplerate(sdi, DEFAULT_SAMPLERATE) != SR_OK)