VirtualBox

Ignore:
Timestamp:
Dec 6, 2014 3:29:16 AM (10 years ago)
Author:
vboxsync
Message:

no else after return.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r53464 r53468  
    64006400                            return VINF_SUCCESS;
    64016401                        }
    6402                         else
    6403                         {
    6404                             OSDBGPRINT(("supdrvGipCreate: failed create GIP timer at %u ns interval. rc=%Rrc\n", u32Interval, rc));
    6405                             Assert(!pDevExt->pGipTimer);
    6406                         }
     6402
     6403                        OSDBGPRINT(("supdrvGipCreate: failed create GIP timer at %u ns interval. rc=%Rrc\n", u32Interval, rc));
     6404                        Assert(!pDevExt->pGipTimer);
    64076405                    }
    64086406                    else
     
    79417939            return VINF_SUCCESS;
    79427940        }
    7943         else
    7944         {
    7945             /* If we failed to have a TSC-delta, measurement the TSC-delta and retry. */
    7946             int rc2;
    7947             uint16_t iCpu;
    7948             AssertMsgReturn(idApic < RT_ELEMENTS(pGip->aiCpuFromApicId),
    7949                             ("idApic=%u ArraySize=%u\n", idApic, RT_ELEMENTS(pGip->aiCpuFromApicId)), VERR_INVALID_CPU_INDEX);
    7950             iCpu = pGip->aiCpuFromApicId[idApic];
    7951             AssertMsgReturn(iCpu < pGip->cCpus, ("iCpu=%u cCpus=%u\n", iCpu, pGip->cCpus), VERR_INVALID_CPU_INDEX);
    7952 
    7953             Assert(GIP_ARE_TSC_DELTAS_APPLICABLE(pDevExt));
    7954             rc2 = supdrvMeasureTscDeltaOne(pDevExt, iCpu);
    7955             if (RT_SUCCESS(rc2))
    7956                 AssertReturn(pGip->aCPUs[iCpu].i64TSCDelta != INT64_MAX, VERR_INTERNAL_ERROR_2);
    7957         }
     7941
     7942        /* If we failed to have a TSC-delta, measurement the TSC-delta and retry. */
     7943        int rc2;
     7944        uint16_t iCpu;
     7945        AssertMsgReturn(idApic < RT_ELEMENTS(pGip->aiCpuFromApicId),
     7946                        ("idApic=%u ArraySize=%u\n", idApic, RT_ELEMENTS(pGip->aiCpuFromApicId)), VERR_INVALID_CPU_INDEX);
     7947        iCpu = pGip->aiCpuFromApicId[idApic];
     7948        AssertMsgReturn(iCpu < pGip->cCpus, ("iCpu=%u cCpus=%u\n", iCpu, pGip->cCpus), VERR_INVALID_CPU_INDEX);
     7949
     7950        Assert(GIP_ARE_TSC_DELTAS_APPLICABLE(pDevExt));
     7951        rc2 = supdrvMeasureTscDeltaOne(pDevExt, iCpu);
     7952        if (RT_SUCCESS(rc2))
     7953            AssertReturn(pGip->aCPUs[iCpu].i64TSCDelta != INT64_MAX, VERR_INTERNAL_ERROR_2);
    79587954    }
    79597955
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