summaryrefslogtreecommitdiff
blob: 06723ad1306c909f730cc85ddeb811ff55268841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: libthinkfinger/libthinkfinger.c
===================================================================
--- libthinkfinger/libthinkfinger.c	(revision 118)
+++ libthinkfinger/libthinkfinger.c	(working copy)
@@ -265,18 +265,7 @@
 	int retval = -1;
 	char dummy[] = "\x10";
 
-	/* SET_CONFIGURATION 1 -- should not be relevant */
 	retval = usb_control_msg (handle,	 // usb_dev_handle *dev
-				   0x00000000,	 // int requesttype
-				   0x00000009,	 // int request
-				   0x001,	 // int value
-				   0x000,	 // int index
-				   dummy,	 // char *bytes
-				   0x00000000,	 // int size
-				   USB_TIMEOUT); // int timeout
-	if (retval < 0)
-		goto out;
-	retval = usb_control_msg (handle,	 // usb_dev_handle *dev
 				   0x00000040,	 // int requesttype
 				   0x0000000c,	 // int request
 				   0x100,	 // int value
@@ -285,7 +274,6 @@
 				   0x00000001,	 // int size
 				   USB_TIMEOUT); // int timeout
 
-out:
 	return retval;
 }