VirtualBox

Changeset 40298 in vbox for trunk/src/VBox/Runtime


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

Location:
trunk/src/VBox/Runtime/common/dvm
Files:
3 edited

Legend:

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

    r40137 r40298  
    297297
    298298    pThis = (PRTDVMFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMFMTINTERNAL));
    299     if (VALID_PTR(pThis))
     299    if (pThis)
    300300    {
    301301        pThis->pDisk       = pDisk;
     
    369369    PRTDVMVOLUMEFMTINTERNAL pVol = (PRTDVMVOLUMEFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMVOLUMEFMTINTERNAL));
    370370
    371     if (VALID_PTR(pVol))
     371    if (pVol)
    372372    {
    373373        pVol->pVolMgr            = pThis;
  • 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;
  • trunk/src/VBox/Runtime/common/dvm/dvmmbr.cpp

    r40137 r40298  
    141141
    142142    pThis = (PRTDVMFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMFMTINTERNAL));
    143     if (VALID_PTR(pThis))
     143    if (pThis)
    144144    {
    145145        pThis->pDisk       = pDisk;
     
    178178
    179179    pThis = (PRTDVMFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMFMTINTERNAL));
    180     if (VALID_PTR(pThis))
     180    if (pThis)
    181181    {
    182182        /* Setup a new MBR and write it to the disk. */
     
    240240    PRTDVMVOLUMEFMTINTERNAL pVol = (PRTDVMVOLUMEFMTINTERNAL)RTMemAllocZ(sizeof(RTDVMVOLUMEFMTINTERNAL));
    241241
    242     if (VALID_PTR(pVol))
     242    if (pVol)
    243243    {
    244244        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