X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fscpi-pps%2Fapi.c;h=5d2488252aa0a5e154ea9a096f7cc1cdce5fd075;hb=a9010323ddf4e479663e871386c05db05ea3522e;hp=6b73f121d235344473e394d160e68131f063ffe7;hpb=b4fde527b66c0f53c96582075720819662f60a8d;p=libsigrok.git diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index 6b73f121..5d248825 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -517,7 +517,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * const struct channel_spec *ch_spec; GVariant *gvar; GVariantBuilder gvb; - int ret, i; + int i; const char *s[16]; /* Always available, even without sdi. */ @@ -535,7 +535,6 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * return SR_ERR_ARG; devc = sdi->priv; - ret = SR_OK; if (!cg) { /* No channel group: global options. */ switch (key) { @@ -616,7 +615,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * } } - return ret; + return SR_OK; } static int dev_acquisition_start(const struct sr_dev_inst *sdi)