Remove sdi->index from openbench-logic-sniffer and pipistrello-ols

This commit is contained in:
Soeren Apel 2014-09-27 21:56:18 +02:00 committed by Bert Vermeulen
parent 395206f460
commit 71580ef1f3
2 changed files with 0 additions and 2 deletions

View File

@ -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. */

View File

@ -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)