diff options
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; |
