summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/linux/USBGetDevices.cpp
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2011-04-22 11:24:51 +0200
committerFelix Geyer <debfx-pkg@fobos.de>2011-04-22 11:24:51 +0200
commit3c3b014d3682252dbc133a6d2cd5dd2f8a028bbe (patch)
treeb5eb77e20ee70b9bd9b767e52888639d4136c81d /src/VBox/Main/src-server/linux/USBGetDevices.cpp
parent0eeddfd8dc6b9702278fdefa2dee1d3f465e0ea2 (diff)
downloadvirtualbox-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.cpp16
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;