]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/testo/api.c
Enable loading of session files without the unit size defined
[libsigrok.git] / src / hardware / testo / api.c
index 0ac6a32ceae4ccfb84cb98762eedd8da29d5c8fa..0c37886e30c9d995e17c1a9c95eeee59c24e3679 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <string.h>
 #include "protocol.h"
 
@@ -91,11 +92,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                                continue;
                }
 
-               if ((ret = libusb_get_device_descriptor( devlist[i], &des)) != 0) {
-                       sr_warn("Failed to get device descriptor: %s.",
-                               libusb_error_name(ret));
-                       continue;
-               }
+               libusb_get_device_descriptor(devlist[i], &des);
 
                if ((ret = libusb_open(devlist[i], &hdl)) < 0)
                        continue;