]> sigrok.org Git - libsigrok.git/commitdiff
ols: remove needless initialization
authorWolfram Sang <redacted>
Wed, 2 Jan 2019 12:15:15 +0000 (13:15 +0100)
committerUwe Hermann <redacted>
Sun, 13 Jan 2019 19:07:27 +0000 (20:07 +0100)
channel_mask is recalculated before it gets accessed, so this
initialization is not needed.

Signed-off-by: Wolfram Sang <redacted>
src/hardware/openbench-logic-sniffer/protocol.c

index 0d6efeb85a89fd41d2a21dd81ee3aa400e4c664c..3bfb890fddf6623f8af8af9495d667b25d71b028 100644 (file)
@@ -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;