VirtualBox

Changeset 49959 in vbox for trunk/src


Ignore:
Timestamp:
Dec 17, 2013 4:06:06 PM (11 years ago)
Author:
vboxsync
Message:

EHCI,OHCI: Cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r49958 r49959  
    824824DECLINLINE(int) ohciSetInterruptInt(POHCI ohci, int rcBusy, uint32_t intr, const char *msg)
    825825{
    826     int rc = VINF_SUCCESS;
    827 
    828     rc = PDMCritSectEnter(&ohci->CsIrq, rcBusy);
     826    int rc = PDMCritSectEnter(&ohci->CsIrq, rcBusy);
    829827    if (rc != VINF_SUCCESS)
    830828        return rc;
     
    41324130    uint32_t res = pThis->intr_status & ~val;
    41334131    uint32_t chg = pThis->intr_status ^ res; NOREF(chg);
    4134     int rc = VINF_SUCCESS;
    4135 
    4136     rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
     4132
     4133    int rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
    41374134    if (rc != VINF_SUCCESS)
    41384135        return rc;
     
    41814178    uint32_t res = pThis->intr | val;
    41824179    uint32_t chg = pThis->intr ^ res; NOREF(chg);
    4183     int rc = VINF_SUCCESS;
    4184 
    4185     rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
     4180
     4181    int rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
    41864182    if (rc != VINF_SUCCESS)
    41874183        return rc;
     
    42324228    uint32_t res = pThis->intr & ~val;
    42334229    uint32_t chg = pThis->intr ^ res; NOREF(chg);
    4234     int rc = VINF_SUCCESS;
    4235 
    4236     rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
     4230
     4231    int rc = PDMCritSectEnter(&pThis->CsIrq, VINF_IOM_R3_MMIO_WRITE);
    42374232    if (rc != VINF_SUCCESS)
    42384233        return 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