Date: Wed, 12 Dec 2007 21:45:14 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 130739 for review Message-ID: <200712122145.lBCLjErF068371@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130739 Change 130739 by hselasky@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712122145.lBCLjErF068371>