VirtualBox

Ignore:
Timestamp:
Feb 29, 2012 2:19:21 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/dvm: don't use VALID_PTR here, that only confuses code scanners

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp

    r40137 r40298  
    255255
    256256    pThis = (PRTDVMFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMFMTINTERNAL));
    257     if (VALID_PTR(pThis))
     257    if (pThis)
    258258    {
    259259        pThis->pDisk       = pDisk;
     
    280280            {
    281281                pThis->paGptEntries = (PGptEntry)RTMemAllocZ(pThis->HdrRev1.cPartitionEntries * pThis->HdrRev1.cbPartitionEntry);
    282                 if (VALID_PTR(pThis->paGptEntries))
     282                if (pThis->paGptEntries)
    283283                {
    284284                    rc = rtDvmDiskRead(pDisk, RTDVM_GPT_LBA2BYTE(pThis->HdrRev1.u64LbaPartitionEntries, pDisk),
     
    370370    PRTDVMVOLUMEFMTINTERNAL pVol = (PRTDVMVOLUMEFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMVOLUMEFMTINTERNAL));
    371371
    372     if (VALID_PTR(pVol))
     372    if (pVol)
    373373    {
    374374        pVol->pVolMgr    = pThis;
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