Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add missing ifdef's for reduced feature compilations.

  • Loading branch information...
commit e9e96300b70118a02c9983e18a85baa40bbdd515 1 parent cfe5852
authored April 03, 2013

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  sys/dev/usb/usb_device.c
4  sys/dev/usb/usb_device.c
@@ -1854,6 +1854,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
1854 1854
 			config_index++;
1855 1855
 			goto repeat_set_config;
1856 1856
 		}
  1857
+#if USB_HAVE_MSCTEST
1857 1858
 		if (config_index == 0) {
1858 1859
 			/*
1859 1860
 			 * Try to figure out if we have an
@@ -1866,7 +1867,9 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
1866 1867
 				goto repeat_set_config;
1867 1868
 			}
1868 1869
 		}
  1870
+#endif
1869 1871
 	}
  1872
+#if USB_HAVE_MSCTEST
1870 1873
 	if (set_config_failed == 0 && config_index == 0 &&
1871 1874
 	    usb_test_quirk(&uaa, UQ_MSC_NO_SYNC_CACHE) == 0 &&
1872 1875
 	    usb_test_quirk(&uaa, UQ_MSC_NO_GETMAXLUN) == 0) {
@@ -1882,6 +1885,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
1882 1885
 			goto repeat_set_config;
1883 1886
 		}
1884 1887
 	}
  1888
+#endif
1885 1889
 
1886 1890
 config_done:
1887 1891
 	DPRINTF("new dev (addr %d), udev=%p, parent_hub=%p\n",

Git Notes

svn path=/head/; revision=249043

0 notes on commit e9e9630

Please sign in to comment.
Something went wrong with that request. Please try again.