]> sigrok.org Git - libsigrok.git/commitdiff
brymen-bm86x: remove redundant initilialization
authorAurelien Jacobs <redacted>
Tue, 16 Aug 2016 16:16:28 +0000 (18:16 +0200)
committerUwe Hermann <redacted>
Tue, 23 Aug 2016 10:36:19 +0000 (12:36 +0200)
src/hardware/brymen-bm86x/protocol.c

index 5ae8c0958f4ed01830dd105a786c4e278fbc975c..353ae02bfd3f84b88f74e80fa592fedf83dd8524 100644 (file)
@@ -206,12 +206,6 @@ static void brymen_bm86x_handle_packet(const struct sr_dev_inst *sdi,
        sr_analog_init(&analog[0], &encoding[0], &meaning[0], &spec[0], 0);
        sr_analog_init(&analog[1], &encoding[1], &meaning[1], &spec[1], 0);
 
-       analog[0].meaning->mq = 0;
-       analog[0].meaning->mqflags = 0;
-
-       analog[1].meaning->mq = 0;
-       analog[1].meaning->mqflags = 0;
-
        brymen_bm86x_parse(buf, floatval, analog);
 
        if (analog[0].meaning->mq != 0) {