]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rigol-ds/api.c
Fix a few "value never read" scan-build warnings.
[libsigrok.git] / src / hardware / rigol-ds / api.c
index 762154a75592d50fbb8ed336af3b1856c9427e91..58cb7cced59e206d9abe4d31c535caeabd98516b 100644 (file)
@@ -809,9 +809,6 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
        unsigned int i;
        struct dev_context *devc = NULL;
 
-       if (sdi)
-               devc = sdi->priv;
-
        if (key == SR_CONF_SCAN_OPTIONS) {
                *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
                                scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));