]> sigrok.org Git - libsigrok.git/commitdiff
demo: Code cleanup.
authorBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:02:14 +0000 (15:02 +0200)
committerBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:02:14 +0000 (15:02 +0200)
This cleans up a warning generated by clang's static analyzer.

src/hardware/demo/demo.c

index 73000bc77e96d2000ddc9a0ba64e72082604c4a5..3bf7a242268e73ea9bc8e9753a22db0617506a79 100644 (file)
@@ -496,7 +496,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
                if (!cg)
                        return SR_ERR_CHANNEL_GROUP;
                stropt = g_variant_get_string(data, NULL);
-               ch = cg->channels->data;
                logic_pattern = analog_pattern = -1;
                for (i = 0; i < ARRAY_SIZE(logic_pattern_str); i++) {
                        if (!strcmp(stropt, logic_pattern_str[i])) {