Permalink
Browse files

Add missing ifdef's for reduced feature compilations.

  • Loading branch information...
1 parent cfe5852 commit e9e96300b70118a02c9983e18a85baa40bbdd515 hselasky committed Apr 3, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 sys/dev/usb/usb_device.c
@@ -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",

0 comments on commit e9e9630

Please sign in to comment.