From: Bert Vermeulen Date: Thu, 2 Oct 2014 13:02:14 +0000 (+0200) Subject: demo: Code cleanup. X-Git-Tag: libsigrok-0.4.0~898 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=385cb66058e534b57ca473449dfe57f43e246c6a;p=libsigrok.git demo: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index 73000bc7..3bf7a242 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -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])) {