- Remove misguided casts

svn path=/trunk/; revision=60740
This commit is contained in:
Thomas Faber 2013-10-24 17:53:45 +00:00
parent f8e71a7dc5
commit 8b7398acf8
2 changed files with 8 additions and 8 deletions

View file

@ -381,7 +381,7 @@ MiBalancerThread(PVOID Unused)
ULONG InitialTarget = 0; ULONG InitialTarget = 0;
#if (_MI_PAGING_LEVELS == 2) #if (_MI_PAGING_LEVELS == 2)
if(!MiIsBalancerThread()) if (!MiIsBalancerThread())
{ {
/* Clean up the unused PDEs */ /* Clean up the unused PDEs */
ULONG_PTR Address; ULONG_PTR Address;
@ -390,14 +390,14 @@ MiBalancerThread(PVOID Unused)
/* Acquire PFN lock */ /* Acquire PFN lock */
KIRQL OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock); KIRQL OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
PMMPDE pointerPde; PMMPDE pointerPde;
for(Address = (ULONG_PTR)MI_LOWEST_VAD_ADDRESS; for (Address = (ULONG_PTR)MI_LOWEST_VAD_ADDRESS;
Address < (ULONG_PTR)MM_HIGHEST_VAD_ADDRESS; Address < (ULONG_PTR)MM_HIGHEST_VAD_ADDRESS;
Address += (PAGE_SIZE * PTE_COUNT)) Address += (PAGE_SIZE * PTE_COUNT))
{ {
if(MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] == 0) if (MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] == 0)
{ {
pointerPde = MiAddressToPde(Address); pointerPde = MiAddressToPde(Address);
if(pointerPde->u.Hard.Valid) if (pointerPde->u.Hard.Valid)
MiDeletePte(pointerPde, MiPdeToPte(pointerPde), Process, NULL); MiDeletePte(pointerPde, MiPdeToPte(pointerPde), Process, NULL);
ASSERT(pointerPde->u.Hard.Valid == 0); ASSERT(pointerPde->u.Hard.Valid == 0);
} }
@ -464,7 +464,7 @@ MiInitBalancerThread(VOID)
NULL, NULL,
NULL, NULL,
&MiBalancerThreadId, &MiBalancerThreadId,
(PKSTART_ROUTINE) MiBalancerThread, MiBalancerThread,
NULL); NULL);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {

View file

@ -346,7 +346,7 @@ MmInitMpwThread(VOID)
NULL, NULL,
NULL, NULL,
&MpwThreadId, &MpwThreadId,
(PKSTART_ROUTINE) MmMpwThreadMain, MmMpwThreadMain,
NULL); NULL);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {