PERFORCE change 165821 for review

Sylvestre Gallon syl at FreeBSD.org
Wed Jul 8 13:58:17 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=165821

Change 165821 by syl at syl_pablo on 2009/07/08 13:57:50

	Remove unused variable.

Affected files ...

.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#58 edit
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#20 edit
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#24 edit

Differences ...

==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#58 (text+ko) ====

@@ -650,7 +650,6 @@
     int interface_number, int alternate_setting)
 {
 	libusb_context *ctx;
-	int ret;
 
 	ctx = NULL;
 	GET_CONTEXT(ctx);
@@ -1042,10 +1041,8 @@
 	libusb_context *ctx;
 	int maxframe;
 	int buffsize;
-	int num_frame;
 	int ep_idx;
 	int ret;
-	int i;
 
 	if (xfer == NULL)
 		return (LIBUSB_ERROR_NO_MEM);

==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#20 (text+ko) ====

@@ -281,7 +281,6 @@
 {
 	struct libusb20_device *pdev;
 	libusb_context *ctx;
-	int ret;
 
 	ctx = NULL;
 	GET_CONTEXT(ctx);

==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#24 (text+ko) ====

@@ -165,11 +165,8 @@
 get_next_timeout(libusb_context *ctx, struct timeval *tv, struct timeval *out)
 {
 	struct timeval timeout;
-	int ret;
 
-	ret = libusb_get_next_timeout(ctx, &timeout);
-	
-	if (ret) {
+	if (libusb_get_next_timeout(ctx, &timeout)) {
 		if (timerisset(&timeout) == 0)
 			return 1;
 		if (timercmp(&timeout, tv, <) != 0)
@@ -232,14 +229,10 @@
 	struct libusb_pollfd *tmppollfd;
 	struct libusb_device_handle *devh;
 	struct usb_pollfd *ipollfd;
-	struct usb_transfer *cur;
-	struct usb_transfer *cancel;
-	struct libusb_transfer *xfer;
 	struct pollfd *fds;
 	struct pollfd *tfds;
 	nfds_t nfds;
 	int tmpfd;
-	int tmp;
 	int ret;
 	int timeout;
 	int i;
@@ -489,7 +482,6 @@
 int
 libusb_handle_events_timeout(libusb_context * ctx, struct timeval *tv)
 {
-	struct timeval timeout;
 	struct timeval poll_timeout;
 	int ret;
 	


More information about the p4-projects mailing list