Date: Sat, 22 Dec 2007 13:07:22 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 131431 for review Message-ID: <200712221307.lBMD7Mtc067280@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131431 Change 131431 by hselasky@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712221307.lBMD7Mtc067280>