X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fatten-pps3xxx%2Fapi.c;h=0a16ca5f2c5b245d7c51455666abb1ddd9e6654f;hp=c88914f9139aca7bd077abcf4eee83b062219170;hb=ca314e060f653e6a0b5ec0f58914bac4d426217f;hpb=c8e789fa0c7264f8356b0446367cc1252fadfe4c diff --git a/src/hardware/atten-pps3xxx/api.c b/src/hardware/atten-pps3xxx/api.c index c88914f9..0a16ca5f 100644 --- a/src/hardware/atten-pps3xxx/api.c +++ b/src/hardware/atten-pps3xxx/api.c @@ -195,7 +195,6 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s devc = sdi->priv; if (!cg) { - /* No channel group: global options. */ switch (key) { case SR_CONF_CHANNEL_CONFIG: *data = g_variant_new_string(channel_modes[devc->channel_mode]); @@ -263,7 +262,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd ret = SR_OK; devc = sdi->priv; if (!cg) { - /* No channel group: global options. */ switch (key) { case SR_CONF_CHANNEL_CONFIG: sval = g_variant_get_string(data, NULL); @@ -294,7 +292,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd return SR_ERR_NA; } } else { - /* Channel group specified: per-channel options. */ /* We only ever have one channel per channel group in this driver. */ ch = cg->channels->data; channel = ch->index; @@ -342,7 +339,6 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * devc = (sdi) ? sdi->priv : NULL; if (!cg) { - /* No channel group: global options. */ switch (key) { case SR_CONF_SCAN_OPTIONS: case SR_CONF_DEVICE_OPTIONS: @@ -360,8 +356,6 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * return SR_ERR_NA; } } else { - /* Channel group specified: per-channel options. */ - /* We only ever have one channel per channel group in this driver. */ ch = cg->channels->data; channel = ch->index;