PERFORCE change 130739 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Dec 12 13:45:16 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=130739
Change 130739 by hselasky at hselasky_laptop001 on 2007/12/12 21:44:36
Scan address zero aswell. The kernel will check
if the address is valid or not.
Affected files ...
.. //depot/projects/usb/src/usr.sbin/usbdevs/usbdevs.c#2 edit
Differences ...
==== //depot/projects/usb/src/usr.sbin/usbdevs/usbdevs.c#2 (text+ko) ====
@@ -146,10 +146,7 @@
printf("%*s", indent, "");
if (verbose)
printf("port %d ", p+1);
- if (s == 0)
- printf("addr 0 should never happen!\n");
- else
- usbdev(f, s, 1);
+ usbdev(f, s, 1);
indent--;
}
}
@@ -159,7 +156,7 @@
{
int a;
- for (a = 1; a < USB_MAX_DEVICES; a++) {
+ for (a = 0; a < USB_MAX_DEVICES; a++) {
if (!done[a])
usbdev(f, a, 1);
}
More information about the p4-projects
mailing list