VirtualBox

Changeset 35753 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Jan 28, 2011 10:58:06 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69710
Message:

various nits.

Location:
trunk/src/VBox/Devices/Bus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r35353 r35753  
    20242024static DECLCALLBACK(int)   pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    20252025{
    2026     int rc;
    20272026    Assert(iInstance == 0);
     2027    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    20282028
    20292029    /*
     
    20352035    /* query whether we got an IOAPIC */
    20362036    bool fUseIoApic;
    2037     rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);
     2037    int rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);
    20382038    if (RT_FAILURE(rc))
    20392039        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    24172417static DECLCALLBACK(int)   pcibridgeConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    24182418{
    2419     int rc;
     2419    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    24202420
    24212421    /*
     
    24272427    /* check if RC code is enabled. */
    24282428    bool fGCEnabled;
    2429     rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);
     2429    int rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);
    24302430    if (RT_FAILURE(rc))
    24312431        return PDMDEV_SET_ERROR(pDevIns, rc,
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r35676 r35753  
    12021202     */
    12031203    uint8_t const fBridge = fIsBridge ? 2 : 1;
    1204     Assert(!PCIIsPassthrough(pDev)); 
     1204    Assert(!PCIIsPassthrough(pDev));
    12051205    uint8_t *pbDstConfig = &pDev->config[0];
    12061206
     
    13981398
    13991399        /* commit the loaded device config. */
    1400         Assert(!PCIIsPassthrough(pDev)); 
     1400        Assert(!PCIIsPassthrough(pDev));
    14011401        pciR3CommonRestoreConfig(pDev, &DevTmp.config[0], false ); /** @todo fix bridge fun! */
    14021402
     
    17561756    }
    17571757
    1758     AssertMsgReturn(u32Address + len <= 256, ("Read after end of PCI config space\n"), 
    1759                     0); 
     1758    AssertMsgReturn(u32Address + len <= 256, ("Read after end of PCI config space\n"),
     1759                    0);
    17601760    if (   PCIIsMsiCapable(aDev)
    17611761        && (u32Address >= aDev->Int.s.u8MsiCapOffset)
     
    22742274                                          PCFGMNODE  pCfg)
    22752275{
    2276     int rc;
    22772276    Assert(iInstance == 0);
     2277    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    22782278
    22792279    /*
     
    22912291    /* query whether we got an IOAPIC */
    22922292    bool fUseIoApic;
    2293     rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);
     2293    int rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);
    22942294    if (RT_FAILURE(rc))
    22952295        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    25882588                                                  PCFGMNODE  pCfg)
    25892589{
    2590     int rc;
     2590    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    25912591
    25922592    /*
     
    25982598    /* check if RC code is enabled. */
    25992599    bool fGCEnabled;
    2600     rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);
     2600    int rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);
    26012601    if (RT_FAILURE(rc))
    26022602        return PDMDEV_SET_ERROR(pDevIns, rc,
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