diff options
| author | Felix Geyer <debfx-pkg@fobos.de> | 2011-04-22 11:24:51 +0200 |
|---|---|---|
| committer | Felix Geyer <debfx-pkg@fobos.de> | 2011-04-22 11:24:51 +0200 |
| commit | 3c3b014d3682252dbc133a6d2cd5dd2f8a028bbe (patch) | |
| tree | b5eb77e20ee70b9bd9b767e52888639d4136c81d /src/VBox/Main/src-server/linux/USBGetDevices.cpp | |
| parent | 0eeddfd8dc6b9702278fdefa2dee1d3f465e0ea2 (diff) | |
| download | virtualbox-3c3b014d3682252dbc133a6d2cd5dd2f8a028bbe.tar.gz | |
Imported Upstream version 4.0.6-dfsgupstream/4.0.6-dfsg
Diffstat (limited to 'src/VBox/Main/src-server/linux/USBGetDevices.cpp')
| -rw-r--r-- | src/VBox/Main/src-server/linux/USBGetDevices.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/VBox/Main/src-server/linux/USBGetDevices.cpp b/src/VBox/Main/src-server/linux/USBGetDevices.cpp index 70bb7cd9a..b2e2b70b3 100644 --- a/src/VBox/Main/src-server/linux/USBGetDevices.cpp +++ b/src/VBox/Main/src-server/linux/USBGetDevices.cpp @@ -99,10 +99,8 @@ static const USBSUFF s_aIntervalSuff[] = */ static const USBDEVTREELOCATION s_aTreeLocations[] = { - { "/proc/bus/usb", false }, - { "/dev/bus/usb", false }, { "/dev/vboxusb", true }, - { "/dev/bus/usb", true }, + { "/proc/bus/usb", false }, }; @@ -1444,17 +1442,7 @@ PCUSBDEVTREELOCATION USBProxyLinuxGetDeviceRoot(bool fPreferSysfs) if ( fHaveInotify && !pcBestSysfs && RTPathExists(s_aTreeLocations[i].szDevicesRoot)) - { - PUSBDEVICE pDevices; - - pDevices = getDevicesFromSysfs(s_aTreeLocations[i].szDevicesRoot, - true); - if (pDevices) - { - pcBestSysfs = &s_aTreeLocations[i]; - deviceListFree(&pDevices); - } - } + pcBestSysfs = &s_aTreeLocations[i]; } if (pcBestUsbfs && !fPreferSysfs) return pcBestUsbfs; |
