]> sigrok.org Git - libsigrok.git/commitdiff
sysclk-lwla: Remove double USB set configuration
authorDaniel Elstner <redacted>
Fri, 27 Nov 2015 20:26:13 +0000 (21:26 +0100)
committerDaniel Elstner <redacted>
Fri, 27 Nov 2015 20:26:13 +0000 (21:26 +0100)
This was a pointless attempt to make the reset hiccups go away.
It didn't help, the problem must be something else.

src/hardware/sysclk-lwla/api.c

index d093430d50dfec6027c27ca03f8467c5e58a0261..7dfd7582f67c539219f199c2f2bebf9733977e34 100644 (file)
@@ -274,11 +274,7 @@ static int dev_open(struct sr_dev_inst *sdi)
        if (ret != SR_OK)
                return ret;
 
-       /* Set the configuration twice to trigger a lightweight reset.
-        */
        ret = libusb_set_configuration(usb->devhdl, USB_CONFIG);
-       if (ret == 0)
-               ret = libusb_set_configuration(usb->devhdl, USB_CONFIG);
        if (ret != 0) {
                sr_err("Failed to set USB configuration: %s.",
                        libusb_error_name(ret));