VirtualBox

Changeset 54117 in vbox for trunk/src/VBox/Storage/VMDK.cpp


Ignore:
Timestamp:
Feb 9, 2015 5:08:28 PM (10 years ago)
Author:
vboxsync
Message:

don't check for VALID_PTR after RTMem*Alloc(), that's overkill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VMDK.cpp

    r50988 r54117  
    564564    /* If we get here, there's no matching entry in the cache. */
    565565    pVmdkFile = (PVMDKFILE)RTMemAllocZ(sizeof(VMDKFILE));
    566     if (!VALID_PTR(pVmdkFile))
     566    if (!pVmdkFile)
    567567    {
    568568        *ppVmdkFile = NULL;
     
    571571
    572572    pVmdkFile->pszFilename = RTStrDup(pszFilename);
    573     if (!VALID_PTR(pVmdkFile->pszFilename))
     573    if (!pVmdkFile->pszFilename)
    574574    {
    575575        RTMemFree(pVmdkFile);
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