VirtualBox

Changeset 107837 in vbox for trunk


Ignore:
Timestamp:
Jan 17, 2025 10:26:13 AM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167028
Message:

Main/src-server/darwin/iokit.cpp: Remove unused variables, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r106061 r107837  
    943943        return;
    944944
    945     bool fUserClientOnly = true; RT_NOREF(fUserClientOnly); /* Shut up Clang 13 (-Wunused-but-set-variable). */
    946     bool fConfigured = false;    RT_NOREF(fConfigured);
    947945    bool fInUse = false;
    948946    bool fSeizable = true;
     
    956954                 || !strcmp(szName, "IOUSBHostInterface")))
    957955        {
    958             fConfigured = true;
    959 
    960956            /*
    961957             * Iterate the interface children looking for stuff other than
     
    973969                        &&  strcmp(szName, "IOUSBUserClientInit"))
    974970                    {
    975                         fUserClientOnly = false;
    976 
    977971                        if (   !strcmp(szName, "IOUSBMassStorageClass")
    978972                            || !strcmp(szName, "IOUSBMassStorageInterfaceNub"))
     
    14801474        io_registry_entry_t ChildEntry = MediaService;
    14811475        io_registry_entry_t ParentEntry = IO_OBJECT_NULL;
    1482         kern_return_t krc = KERN_SUCCESS;
    14831476        while (   !fIsGenericStorage
    1484                && (krc = IORegistryEntryGetParentEntry(ChildEntry, kIOServicePlane, &ParentEntry)) == KERN_SUCCESS)
     1477               && IORegistryEntryGetParentEntry(ChildEntry, kIOServicePlane, &ParentEntry) == KERN_SUCCESS)
    14851478        {
    14861479            if (!IOObjectIsEqualTo(ChildEntry, MediaService))
     
    15421535                     */
    15431536                    io_name_t szEntryName = { 0 };
    1544                     if ((krc = IORegistryEntryGetName(MediaService, szEntryName)) == KERN_SUCCESS)
     1537                    if (IORegistryEntryGetName(MediaService, szEntryName) == KERN_SUCCESS)
    15451538                    {
    15461539                        /* remove " Media" from the end of the name */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette