From: Gerhard Sittig Date: Sun, 3 Jun 2018 16:32:29 +0000 (+0200) Subject: input/logicport: remove obsolete reset/cleanup assignments X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3c9117094cf3c9da5c7c2a7e292c30d3a48882e9;p=libsigrok.git input/logicport: remove obsolete reset/cleanup assignments The in->buf truncation is done by common backend logic. The module's cleanup() does zero out inc, which obsoletes the flag assignments. --- diff --git a/src/input/logicport.c b/src/input/logicport.c index 01173530..e594b2ce 100644 --- a/src/input/logicport.c +++ b/src/input/logicport.c @@ -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; }