]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/scpi-pps/api.c
drivers: Remove some uneeded 'ret' variables.
[libsigrok.git] / src / hardware / scpi-pps / api.c
index 6b73f121d235344473e394d160e68131f063ffe7..5d2488252aa0a5e154ea9a096f7cc1cdce5fd075 100644 (file)
@@ -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)