Root hubs don't have transaction translators, so skip printing the

message about them if the hub depth is zero.
This commit is contained in:
Ian Dowse 2005-03-20 23:45:00 +00:00
parent 0b07d58eb3
commit 20289f7920

View File

@ -182,7 +182,7 @@ USB_ATTACH(uhub)
usbd_devinfo(dev, 1, devinfo);
USB_ATTACH_SETUP;
if (UHUB_IS_HIGH_SPEED(sc)) {
if (dev->depth > 0 && UHUB_IS_HIGH_SPEED(sc)) {
printf("%s: %s transaction translator%s\n",
USBDEVNAME(sc->sc_dev),
UHUB_IS_SINGLE_TT(sc) ? "single" : "multiple",