]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/center-3xx/api.c
drivers: Drop unneeded or duplicate comments.
[libsigrok.git] / src / hardware / center-3xx / api.c
index 5e34f696c1f7fc43273c8a07a01a25a84b851ef4..3f517a22e2059e4a1257dbea39e81f1444b9ef0b 100644 (file)
@@ -109,13 +109,10 @@ static GSList *scan(GSList *options, int idx)
        if (!conn)
                return NULL;
 
-       if (serialcomm) {
-               /* Use the provided comm specs. */
+       if (serialcomm)
                devices = center_scan(conn, serialcomm, idx);
-       } else {
-               /* Try the default. */
+       else
                devices = center_scan(conn, center_devs[idx].conn, idx);
-       }
 
        return std_scan_complete(center_devs[idx].di, devices);
 }
@@ -149,7 +146,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, int idx)
 
        std_session_send_df_header(sdi);
 
-       /* Poll every 500ms, or whenever some data comes in. */
        serial = sdi->conn;
        serial_source_add(sdi->session, serial, G_IO_IN, 500,
                      center_devs[idx].receive_data, (void *)sdi);