]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-dmm/api.c
Minor code cleanup.
[libsigrok.git] / hardware / uni-t-dmm / api.c
index 7aed4e1386d94e9b98dcba4766e07e26bdf95d2f..ef31de040b0df57d019446b902b919121b906d91 100644 (file)
@@ -221,7 +221,7 @@ static GSList *scan(GSList *options, int dmm)
                }
                sdi->priv = devc;
                sdi->driver = udmms[dmm].di;
-               if (!(ch = sr_channel_new(0, SR_PROBE_ANALOG, TRUE, "P1")))
+               if (!(ch = sr_channel_new(0, SR_CHANNEL_ANALOG, TRUE, "P1")))
                        return NULL;
                sdi->channels = g_slist_append(sdi->channels, ch);
 
@@ -257,8 +257,6 @@ static int dev_open(struct sr_dev_inst *sdi, int dmm)
 
 static int dev_close(struct sr_dev_inst *sdi)
 {
-       (void)sdi;
-
        /* TODO */
 
        sdi->status = SR_ST_INACTIVE;