Add missing ifdef's for reduced feature compilations.

This commit is contained in:
hselasky 2013-04-03 10:31:13 +00:00
parent cfe5852fae
commit e9e96300b7

View File

@ -1854,6 +1854,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
config_index++;
goto repeat_set_config;
}
#if USB_HAVE_MSCTEST
if (config_index == 0) {
/*
* Try to figure out if we have an
@ -1866,7 +1867,9 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
goto repeat_set_config;
}
}
#endif
}
#if USB_HAVE_MSCTEST
if (set_config_failed == 0 && config_index == 0 &&
usb_test_quirk(&uaa, UQ_MSC_NO_SYNC_CACHE) == 0 &&
usb_test_quirk(&uaa, UQ_MSC_NO_GETMAXLUN) == 0) {
@ -1882,6 +1885,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
goto repeat_set_config;
}
}
#endif
config_done:
DPRINTF("new dev (addr %d), udev=%p, parent_hub=%p\n",