From: Wolfram Sang Date: Wed, 2 Jan 2019 12:15:15 +0000 (+0100) Subject: ols: remove needless initialization X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6745488b1a33acda728440e69f83e8bb0a0663f1;p=libsigrok.git ols: remove needless initialization channel_mask is recalculated before it gets accessed, so this initialization is not needed. Signed-off-by: Wolfram Sang --- diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 0d6efeb8..3bfb890f 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -141,7 +141,6 @@ SR_PRIV struct dev_context *ols_dev_new(void) /* Acquisition settings */ devc->limit_samples = devc->capture_ratio = 0; devc->trigger_at = -1; - devc->channel_mask = 0xffffffff; devc->flag_reg = 0; return devc;