PERFORCE change 178078 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue May 11 00:04:19 UTC 2010


http://p4web.freebsd.org/@@178078?ac=10

Change 178078 by hselasky at hselasky_laptop001 on 2010/05/11 00:03:19

	
	Back out double-call check from P4 change 178075.
	This should not be possible from open/close after all.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_hub.c#44 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_hub.c#44 (text+ko) ====

@@ -1230,11 +1230,6 @@
 	if (udev->flags.usb_mode != USB_MODE_HOST)
 		return;		/* not supported */
 
-	if (xfer->flags_int.bandwidth_reclaimed != 0)
-		return;		/* bandwidth already allocated */
-
-	xfer->flags_int.bandwidth_reclaimed = 1;
-
 	xfer->endpoint->refcount_bw++;
 	if (xfer->endpoint->refcount_bw != 1)
 		return;		/* already allocated */
@@ -1315,11 +1310,6 @@
 	if (udev->flags.usb_mode != USB_MODE_HOST)
 		return;		/* not supported */
 
-	if (xfer->flags_int.bandwidth_reclaimed == 0)
-		return;		/* bandwidth already freed */
-
-	xfer->flags_int.bandwidth_reclaimed = 0;
-
 	xfer->endpoint->refcount_bw--;
 	if (xfer->endpoint->refcount_bw != 0)
 		return;		/* still allocated */


More information about the p4-projects mailing list