]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/api.c
Simplify a few config_set() callbacks.
[libsigrok.git] / src / hardware / hantek-dso / api.c
index 253d37cdbe54bdb63d47ea7001a5928363dc8625..d2eebfbe55754c74571d7f46313ee41d4846d9cd 100644 (file)
@@ -169,7 +169,7 @@ static struct sr_dev_inst *dso_dev_new(const struct dso_profile *prof)
        struct sr_channel_group *cg;
        struct drv_context *drvc;
        struct dev_context *devc;
-       int i;
+       unsigned int i;
 
        sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INITIALIZING;
@@ -434,8 +434,6 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s
        const uint64_t *vdiv;
        int ch_idx;
 
-       (void)cg;
-
        switch (key) {
        case SR_CONF_NUM_HDIV:
                *data = g_variant_new_int32(NUM_TIMEBASE);