VirtualBox

Changeset 91875 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 20, 2021 9:15:43 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147678
Message:

Devices/Storage: Change the storage drivers to access the CFGM API through the driver helper callback table only, bugref:10074 [build fix]

File:
1 edited

Legend:

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

    r91869 r91875  
    13271327static DECLCALLBACK(int) drvscsiConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    13281328{
    1329     int rc = VINF_SUCCESS;
     1329    RT_NOREF(pCfg);
     1330    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    13301331    PDRVSCSI pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSI);
    13311332    LogFlowFunc(("pDrvIns=%#p pCfg=%#p\n", pDrvIns, pCfg));
    1332     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    13331333
    13341334    /*
     
    14061406    {
    14071407        /* Get The Led. */
    1408         rc = pThis->pLedPort->pfnQueryStatusLed(pThis->pLedPort, 0, &pThis->pLed);
     1408        int rc = pThis->pLedPort->pfnQueryStatusLed(pThis->pLedPort, 0, &pThis->pLed);
    14091409        if (RT_FAILURE(rc))
    14101410            pThis->pLed = &pThis->Led;
     
    14211421     * Try attach driver below and query it's media interface.
    14221422     */
    1423     rc = PDMDrvHlpAttach(pDrvIns, fFlags, &pThis->pDrvBase);
     1423    int rc = PDMDrvHlpAttach(pDrvIns, fFlags, &pThis->pDrvBase);
    14241424    if (RT_FAILURE(rc))
    14251425        return rc;
Note: See TracChangeset for help on using the changeset viewer.

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