VirtualBox

Changeset 29941 in vbox for trunk


Ignore:
Timestamp:
Jun 1, 2010 11:49:49 AM (15 years ago)
Author:
vboxsync
Message:

ATAController: Fix rc usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/ATAController.cpp

    r29758 r29941  
    51325132int  ataControllerAttach(PAHCIATACONTROLLER pCtl, PPDMIBASE pDrvBase, bool fMaster)
    51335133{
    5134     AHCIATADevState    *pIf;
    5135     int             rc;
     5134    AHCIATADevState *pIf;
     5135    int              rc = VINF_SUCCESS;
    51365136
    51375137    /*
     
    51545154    {
    51555155        rc = ataConfigLun(pCtl->pDevInsR3, pIf);
    5156     }
    5157     else
    5158         AssertMsgFailed(("Failed to attach LUN#%d. rc=%Rrc\n", pIf->iLUN, rc));
    5159 
    5160     if (RT_FAILURE(rc))
    5161     {
    5162         pIf->pDrvBase = NULL;
    5163         pIf->pDrvBlock = NULL;
    5164     }
     5156        AssertRC(rc);
     5157
     5158        if (RT_FAILURE(rc))
     5159        {
     5160            pIf->pDrvBase = NULL;
     5161            pIf->pDrvBlock = NULL;
     5162        }
     5163    }
     5164
    51655165    return rc;
    51665166}
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