ols: remove needless initialization
authorWolfram Sang <wsa@the-dreams.de>
Wed, 2 Jan 2019 12:15:15 +0000 (13:15 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
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 <wsa@the-dreams.de>
src/hardware/openbench-logic-sniffer/protocol.c

index 0d6efeb..3bfb890 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;