]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
Drop some lines that are no longer needed.
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index 02ddbb967ad6d8ea36a8385290e5469cb14c9ca4..738bc4c58b4a3c9e35f681d80922ee29fd40e88d 100644 (file)
@@ -343,7 +343,6 @@ static struct dev_context *fx2lafw_dev_new(void)
        devc->limit_samples = 0;
        devc->sample_wide = 0;
 
-
        return devc;
 }
 
@@ -354,7 +353,7 @@ static int clear_instances(void)
 
 static int hw_init(struct sr_context *sr_ctx)
 {
-       return std_hw_init(sr_ctx, di, DRIVER_LOG_DOMAIN);
+       return std_hw_init(sr_ctx, di, LOG_PREFIX);
 }
 
 static GSList *hw_scan(GSList *options)
@@ -467,6 +466,7 @@ static GSList *hw_scan(GSList *options)
                }
        }
        libusb_free_device_list(devlist, 1);
+       g_slist_free_full(conn_devices, (GDestroyNotify)sr_usb_dev_inst_free);
 
        return devices;
 }
@@ -1011,7 +1011,7 @@ static int hw_dev_acquisition_start(const struct sr_dev_inst *sdi,
        free(lupfd);
 
        /* Send header packet to the session bus. */
-       std_session_send_df_header(cb_data, DRIVER_LOG_DOMAIN);
+       std_session_send_df_header(cb_data, LOG_PREFIX);
 
        if ((ret = command_start_acquisition (usb->devhdl,
                devc->cur_samplerate, devc->sample_wide)) != SR_OK) {