]> sigrok.org Git - libsigrok.git/blobdiff - hardware/norma-dmm/api.c
Various drivers: Drop some unneeded lines.
[libsigrok.git] / hardware / norma-dmm / api.c
index 7a98f9589f39eeade446246481375468fedad4d9..6860a783d6ebfeb2db31e42de9bdd77ef8aae0aa 100644 (file)
@@ -128,7 +128,7 @@ static GSList *scan(GSList *options)
                        sdi->conn = serial;
                        sdi->priv = devc;
                        sdi->driver = di;
-                       if (!(ch = sr_channel_new(0, SR_PROBE_ANALOG, TRUE,
+                       if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE,
                                "P1")))
                                return NULL;
                        sdi->channels = g_slist_append(sdi->channels, ch);
@@ -250,9 +250,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
        struct dev_context *devc;
        struct sr_serial_dev_inst *serial;
 
-       (void)sdi;
-       (void)cb_data;
-
        if (!sdi || !cb_data || !(devc = sdi->priv))
                return SR_ERR_BUG;