Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Apr 2009 18:18:37 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190723 - head/sys/dev/usb
Message-ID:  <200904051818.n35IIbQj027424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904051818.n35IIbQj027424>