VirtualBox

Changeset 87609 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Feb 4, 2021 4:00:52 PM (4 years ago)
Author:
vboxsync
Message:

VUSB: Removed redundant casts, fixed forgotten code (see bugref:9928)/

File:
1 edited

Legend:

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

    r87207 r87609  
    633633        RTStrAPrintf(&pExtra->Urb.pszDesc, "URB %p msg->%p", &pExtra->Urb, pUrb);
    634634#endif
    635         pExtra->Urb.pVUsb = (PVUSBURBVUSB)&pExtra->VUsbExtra;
     635        pExtra->Urb.pVUsb = &pExtra->VUsbExtra;
    636636        //pExtra->Urb.pVUsb->pCtrlUrb = NULL;
    637637        //pExtra->Urb.pVUsb->pNext = NULL;
     
    695695        LogFlow(("vusbMsgSetup: Replacing canceled pExtra=%p with %p.\n", pExtra, pvNew));
    696696        pPipe->pCtrl = pExtra = (PVUSBCTRLEXTRA)pvNew;
    697         pExtra->Urb.pVUsb = (PVUSBURBVUSB)&pExtra->Urb.abData[sizeof(pExtra->Urb.abData) + sizeof(VUSBSETUP)];
     697        pExtra->Urb.pVUsb = &pExtra->VUsbExtra;
    698698        pExtra->Urb.pVUsb->pUrb = &pExtra->Urb;
    699699        pExtra->pMsg = (PVUSBSETUP)pExtra->Urb.abData;
     
    721721            pExtra = pNew;
    722722            pPipe->pCtrl = pExtra;
    723             pExtra->Urb.pVUsb = (PVUSBURBVUSB)&pExtra->VUsbExtra;
     723            pExtra->Urb.pVUsb = &pExtra->VUsbExtra;
    724724            pExtra->Urb.pVUsb->pUrb = &pExtra->Urb;
    725725            pExtra->Urb.pVUsb->pvFreeCtx = &pExtra->Urb;
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