]> sigrok.org Git - libsigrok.git/commitdiff
input/logicport: remove obsolete reset/cleanup assignments
authorGerhard Sittig <redacted>
Sun, 3 Jun 2018 16:32:29 +0000 (18:32 +0200)
committerUwe Hermann <redacted>
Sun, 3 Jun 2018 17:28:46 +0000 (19:28 +0200)
The in->buf truncation is done by common backend logic. The module's
cleanup() does zero out inc, which obsoletes the flag assignments.

src/input/logicport.c

index 011735302f0f4483e6425d2a0d2aafa26d8069a8..e594b2cece049379eaed8d869af2ebb4fd3316c0 100644 (file)
@@ -1180,11 +1180,6 @@ static int reset(struct sr_input *in)
        inc->channels = NULL;
        cleanup(in);
        inc->channels = channels;
-       inc->ch_feed_prep = FALSE;
-       inc->header_sent = FALSE;
-       inc->rate_sent = FALSE;
-       if (in->buf)
-               g_string_truncate(in->buf, 0);
 
        return SR_OK;
 }