PERFORCE change 131431 for review

Hans Petter Selasky hselasky at FreeBSD.org
Sat Dec 22 05:07:23 PST 2007


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

Change 131431 by hselasky at hselasky_laptop001 on 2007/12/22 13:07:02

	
	Style change by "usb_style.sh".

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#77 edit

Differences ...

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

@@ -1048,17 +1048,17 @@
 			    USB_MAX_DEVNAMELEN);
 		}
 	} else if (udev->probed == USBD_PROBED_IFACE_AND_FOUND) {
-	for (i = 0; i != MIN(USB_MAX_DEVNAMES, USB_MAX_INTERFACES); i++) {
-		iface = usbd_get_iface(udev, i);
-		if (iface && iface->subdev &&
-		    device_is_attached(iface->subdev)) {
-			strlcpy(di->udi_devnames[i],
-			    device_get_nameunit(iface->subdev),
-			    USB_MAX_DEVNAMELEN);
+		for (i = 0; i != MIN(USB_MAX_DEVNAMES,
+		    USB_MAX_INTERFACES); i++) {
+			iface = usbd_get_iface(udev, i);
+			if (iface && iface->subdev &&
+			    device_is_attached(iface->subdev)) {
+				strlcpy(di->udi_devnames[i],
+				    device_get_nameunit(iface->subdev),
+				    USB_MAX_DEVNAMELEN);
+			}
 		}
 	}
-	}
-
 	if (udev->hub) {
 
 		max = udev->hub->nports;


More information about the p4-projects mailing list