Signed-off-by: Andreas Sandberg <redacted>
static int config_get(uint32_t key, GVariant **data,
const struct sr_dev_inst *sdi, const struct sr_channel_group *cg)
{
- int ret, channel;
+ int channel;
const struct dev_context *devc;
const struct sr_channel *ch;
} else {
ch = cg->channels->data;
channel = ch->index;
- ret = SR_OK;
switch (key) {
case SR_CONF_VOLTAGE:
*data = g_variant_new_double(
}
}
- return ret;
+ return SR_OK;
}
static int config_set(uint32_t key, GVariant *data,