VirtualBox

Changeset 107468 in vbox


Ignore:
Timestamp:
Jan 7, 2025 2:44:53 PM (11 days ago)
Author:
vboxsync
Message:

Devices/Graphics/DevVGA.cpp: Fix some redundant condition and unused assignment warnings reported by parfait, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r106967 r107468  
    10641064                int h, shift_control;
    10651065                /* Check the values before we screw up with a resolution which is too big or small. */
    1066                 size_t cb = pThis->vbe_regs[VBE_DISPI_INDEX_XRES];
     1066                size_t cb;
    10671067                if (pThis->vbe_regs[VBE_DISPI_INDEX_BPP] == 4)
    10681068                    cb = pThis->vbe_regs[VBE_DISPI_INDEX_XRES] >> 1;
     
    23442344            break;
    23452345        default:
    2346         case 0:
     2346        /*case 0: - Superfluous, checked already in the if above */
    23472347            AssertFailed();
    23482348            return VERR_NOT_IMPLEMENTED;
     
    56485648         */
    56495649# ifdef VBOX_WITH_VMSVGA
    5650         rc = PDMDevHlpMmio2ControlDirtyPageTracking(pDevIns, pThis->hMmio2VRam,
    5651                                                     !pThis->svga.fEnabled ||(pThis->svga.fEnabled && pThis->svga.fVRAMTracking));
     5650        rc = PDMDevHlpMmio2ControlDirtyPageTracking(pDevIns, pThis->hMmio2VRam, !pThis->svga.fEnabled || pThis->svga.fVRAMTracking);
    56525651# else
    56535652        rc = PDMDevHlpMmio2ControlDirtyPageTracking(pDevIns, pThis->hMmio2VRam, true /*fEnabled*/);
     
    59815980            uint32_t u32;
    59825981            rc = pHlp->pfnSSMGetU32(pSSM, &u32);
     5982            AssertRCReturn(rc, rc);
     5983
    59835984            if (u32)
    59845985            {
     
    68556856                rc = VINF_SUCCESS;
    68566857            }
    6857             else
    6858                 rc = VERR_NO_MEMORY;
     6858            /* else: Out of memory condition is ignored, see below. */
    68596859        }
    68606860        else
Note: See TracChangeset for help on using the changeset viewer.

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