- Timestamp:
- Jan 17, 2025 10:26:13 AM (4 months ago)
- svn:sync-xref-src-repo-rev:
- 167028
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/iokit.cpp
r106061 r107837 943 943 return; 944 944 945 bool fUserClientOnly = true; RT_NOREF(fUserClientOnly); /* Shut up Clang 13 (-Wunused-but-set-variable). */946 bool fConfigured = false; RT_NOREF(fConfigured);947 945 bool fInUse = false; 948 946 bool fSeizable = true; … … 956 954 || !strcmp(szName, "IOUSBHostInterface"))) 957 955 { 958 fConfigured = true;959 960 956 /* 961 957 * Iterate the interface children looking for stuff other than … … 973 969 && strcmp(szName, "IOUSBUserClientInit")) 974 970 { 975 fUserClientOnly = false;976 977 971 if ( !strcmp(szName, "IOUSBMassStorageClass") 978 972 || !strcmp(szName, "IOUSBMassStorageInterfaceNub")) … … 1480 1474 io_registry_entry_t ChildEntry = MediaService; 1481 1475 io_registry_entry_t ParentEntry = IO_OBJECT_NULL; 1482 kern_return_t krc = KERN_SUCCESS;1483 1476 while ( !fIsGenericStorage 1484 && (krc = IORegistryEntryGetParentEntry(ChildEntry, kIOServicePlane, &ParentEntry)) == KERN_SUCCESS)1477 && IORegistryEntryGetParentEntry(ChildEntry, kIOServicePlane, &ParentEntry) == KERN_SUCCESS) 1485 1478 { 1486 1479 if (!IOObjectIsEqualTo(ChildEntry, MediaService)) … … 1542 1535 */ 1543 1536 io_name_t szEntryName = { 0 }; 1544 if ( (krc = IORegistryEntryGetName(MediaService, szEntryName)) == KERN_SUCCESS)1537 if (IORegistryEntryGetName(MediaService, szEntryName) == KERN_SUCCESS) 1545 1538 { 1546 1539 /* remove " Media" from the end of the name */
Note:
See TracChangeset
for help on using the changeset viewer.