svn commit: r190723 - head/sys/dev/usb

Andrew Thompson thompsa at FreeBSD.org
Sun Apr 5 11:18:45 PDT 2009


Author: thompsa
Date: Sun Apr  5 18:18:36 2009
New Revision: 190723
URL: http://svn.freebsd.org/changeset/base/190723

Log:
  MFp4 //depot/projects/usb at 159677
  
  Remove redundant locking.
  
  Submitted by:	Hans Petter Selasky

Modified:
  head/sys/dev/usb/usb_device.c

Modified: head/sys/dev/usb/usb_device.c
==============================================================================
--- head/sys/dev/usb/usb_device.c	Sun Apr  5 18:18:25 2009	(r190722)
+++ head/sys/dev/usb/usb_device.c	Sun Apr  5 18:18:36 2009	(r190723)
@@ -1647,9 +1647,7 @@ repeat_set_config:
 		DPRINTF("setting config %u\n", config_index);
 
 		/* get the USB device configured */
-		sx_xlock(udev->default_sx + 1);
 		err = usb2_set_config_index(udev, config_index);
-		sx_unlock(udev->default_sx + 1);
 		if (err) {
 			if (udev->ddesc.bNumConfigurations != 0) {
 				if (!set_config_failed) {


More information about the svn-src-head mailing list