Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2009 14:55:54 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 159677 for review
Message-ID:  <200903231455.n2NEtsvb023622@repoman.freebsd.org>

index | next in thread | raw e-mail

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

Change 159677 by hselasky@hselasky_laptop001 on 2009/03/23 14:55:52

	
	USB core: Remove redundant locking.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_device.c#13 edit

Differences ...

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

@@ -1647,9 +1647,7 @@
 		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) {


help

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