- Timestamp:
- Jul 28, 2016 10:22:47 PM (8 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp
r62478 r62655 726 726 727 727 bool fInserted = RTAvlrFileOffsetInsert(pEndpoint->AioMgr.pTreeRangesLocked, &pRangeLock->Core); 728 AssertMsg(fInserted, ("Range lock was not inserted!\n")); 728 AssertMsg(fInserted, ("Range lock was not inserted!\n")); NOREF(fInserted); 729 729 730 730 /* Let the task point to its lock. */ … … 1430 1430 { 1431 1431 bool fReqsPending = pdmacFileAioMgrNormalRemoveEndpoint(pEndpoint); 1432 Assert(!fReqsPending); 1432 Assert(!fReqsPending); NOREF(fReqsPending); 1433 1433 1434 1434 rc = pdmacFileAioMgrAddEndpoint(pEndpoint->AioMgr.pAioMgrDst, pEndpoint); … … 1587 1587 /* If the endpoint is about to be migrated do it now. */ 1588 1588 bool fReqsPending = pdmacFileAioMgrNormalRemoveEndpoint(pEndpoint); 1589 Assert(!fReqsPending); 1589 Assert(!fReqsPending); NOREF(fReqsPending); 1590 1590 1591 1591 rc = pdmacFileAioMgrAddEndpoint(pEndpoint->AioMgr.pAioMgrDst, pEndpoint); -
trunk/src/VBox/VMM/VMMR3/PDMNetShaper.cpp
r62478 r62655 305 305 AssertPtrReturn(pFilter, VERR_INVALID_POINTER); 306 306 AssertReturn(pFilter->pBwGroupR3 == NULL, VERR_ALREADY_EXISTS); 307 RT_NOREF_PV(pDrvIns); 307 308 308 309 PPDMNETSHAPER pShaper = pUVM->pdm.s.pNetShaper; … … 344 345 VMMR3_INT_DECL(int) PDMR3NsDetach(PUVM pUVM, PPDMDRVINS pDrvIns, PPDMNSFILTER pFilter) 345 346 { 347 RT_NOREF_PV(pDrvIns); 346 348 VM_ASSERT_EMT(pUVM->pVM); 347 349 AssertPtrReturn(pFilter, VERR_INVALID_POINTER); 350 348 351 /* Now, return quietly if the filter isn't attached since driver/device 349 352 destructors are called on constructor failure. */ … … 412 415 static DECLCALLBACK(int) pdmR3NsTxThread(PVM pVM, PPDMTHREAD pThread) 413 416 { 417 RT_NOREF_PV(pVM); 418 414 419 PPDMNETSHAPER pShaper = (PPDMNETSHAPER)pThread->pvUser; 415 420 LogFlow(("pdmR3NsTxThread: pShaper=%p\n", pShaper)); … … 437 442 static DECLCALLBACK(int) pdmR3NsTxWakeUp(PVM pVM, PPDMTHREAD pThread) 438 443 { 439 PPDMNETSHAPER pShaper = (PPDMNETSHAPER)pThread->pvUser;440 LogFlow(("pdmR3NsTxWakeUp: pShaper=%p\n", p Shaper));444 RT_NOREF2(pVM, pThread); 445 LogFlow(("pdmR3NsTxWakeUp: pShaper=%p\n", pThread->pvUser)); 441 446 /* Nothing to do */ 442 447 return VINF_SUCCESS; … … 504 509 for (PCFGMNODE pCur = CFGMR3GetFirstChild(pCfgBwGrp); pCur; pCur = CFGMR3GetNextChild(pCur)) 505 510 { 506 uint64_t cbMax;507 511 size_t cbName = CFGMR3GetNameLen(pCur) + 1; 508 512 char *pszBwGrpId = (char *)RTMemAllocZ(cbName); 509 510 if (!pszBwGrpId) 513 if (pszBwGrpId) 511 514 { 515 rc = CFGMR3GetName(pCur, pszBwGrpId, cbName); 516 if (RT_SUCCESS(rc)) 517 { 518 uint64_t cbMax; 519 rc = CFGMR3QueryU64(pCur, "Max", &cbMax); 520 if (RT_SUCCESS(rc)) 521 rc = pdmNsBwGroupCreate(pShaper, pszBwGrpId, cbMax); 522 } 523 RTMemFree(pszBwGrpId); 524 } 525 else 512 526 rc = VERR_NO_MEMORY; 513 break;514 }515 516 rc = CFGMR3GetName(pCur, pszBwGrpId, cbName);517 AssertRC(rc);518 519 if (RT_SUCCESS(rc))520 rc = CFGMR3QueryU64(pCur, "Max", &cbMax);521 if (RT_SUCCESS(rc))522 rc = pdmNsBwGroupCreate(pShaper, pszBwGrpId, cbMax);523 524 RTMemFree(pszBwGrpId);525 526 527 if (RT_FAILURE(rc)) 527 528 break;
Note:
See TracChangeset
for help on using the changeset viewer.