VirtualBox

Changeset 7314 in vbox


Ignore:
Timestamp:
Mar 6, 2008 10:11:22 AM (17 years ago)
Author:
vboxsync
Message:

pcnet: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r7266 r7314  
    603603    uint8_t    ownbyte;
    604604
    605     if (!BCR_SWSTYLE(pData))
     605    if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0))
    606606    {
    607607        uint16_t xda[4];
     
    646646    STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatTmdStore), a);
    647647    PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData);
    648     if (!BCR_SWSTYLE(pData))
     648    if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0))
    649649    {
    650650        uint16_t xda[4];
     
    689689    uint8_t    ownbyte;
    690690
    691     if (!BCR_SWSTYLE(pData))
     691    if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0))
    692692    {
    693693        uint16_t rda[4];
     
    730730{
    731731    PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData);
    732     if (!BCR_SWSTYLE(pData))
     732    if (RT_UNLIKELY(BCR_SWSTYLE(pData) == 0))
    733733    {
    734734        uint16_t rda[4];
     
    18841884    Assert(cbFrame < sizeof(pData->abSendBuf));
    18851885
    1886     PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame,
    1887                       &pData->abSendBuf[0],
    1888                       cbFrame);
     1886    PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, &pData->abSendBuf[0], cbFrame);
    18891887    pData->SendFrame.pvBuf = pData->abSendBuf;
    18901888    pData->SendFrame.cb    = cbFrame;
     
    18981896{
    18991897    Assert(pData->SendFrame.cb + cbFrame < sizeof(pData->abSendBuf));
    1900     PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame,
    1901                       &pData->abSendBuf[pData->SendFrame.cb],
    1902                       cbFrame);
     1898    PDMDevHlpPhysRead(pData->CTXSUFF(pDevIns), GCPhysFrame, &pData->abSendBuf[pData->SendFrame.cb], cbFrame);
    19031899    pData->SendFrame.cb += cbFrame;
    19041900}
     
    46384634
    46394635    unsigned i;
     4636    NOREF(i);
     4637
    46404638#ifdef PCNET_QUEUE_SEND_PACKETS
    46414639    pData->ulXmitRingBufProd   = 0;
     
    46434641    pData->pXmitRingBuffer[0]  = (char *)RTMemAlloc(PCNET_MAX_XMIT_SLOTS * 1536);
    46444642    pData->cbXmitRingBuffer[0] = 0;
    4645     for (i=1;i<PCNET_MAX_XMIT_SLOTS;i++)
     4643    for (i = 1; i < PCNET_MAX_XMIT_SLOTS; i++)
    46464644    {
    46474645        pData->pXmitRingBuffer[i]  = pData->pXmitRingBuffer[i-1] + 1536;
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