]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/ikalogic-scanalogic2/api.c
Fix a few "value never read" scan-build warnings.
[libsigrok.git] / src / hardware / ikalogic-scanalogic2 / api.c
index 8988b4936c1f2258972ec6de666d186084ca3385..130addc74ea3894e25fa6f51683eba4cc997bfe3 100644 (file)
@@ -322,8 +322,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
        if (sdi->status != SR_ST_ACTIVE)
                return SR_ERR_DEV_CLOSED;
 
-       ret = SR_OK;
-
        switch (key) {
        case SR_CONF_LIMIT_SAMPLES:
                limit_samples = g_variant_get_uint64(data);