Author: tfaber
Date: Thu Oct 24 17:53:45 2013
New Revision: 60740
URL:
http://svn.reactos.org/svn/reactos?rev=60740&view=rev
Log:
[NTOS]
- Remove misguided casts
Modified:
trunk/reactos/ntoskrnl/mm/balance.c
trunk/reactos/ntoskrnl/mm/mminit.c
Modified: trunk/reactos/ntoskrnl/mm/balance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/balance.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] Thu Oct 24 17:53:45 2013
@@ -381,7 +381,7 @@
ULONG InitialTarget = 0;
#if (_MI_PAGING_LEVELS == 2)
- if(!MiIsBalancerThread())
+ if (!MiIsBalancerThread())
{
/* Clean up the unused PDEs */
ULONG_PTR Address;
@@ -390,14 +390,14 @@
/* Acquire PFN lock */
KIRQL OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
PMMPDE pointerPde;
- for(Address = (ULONG_PTR)MI_LOWEST_VAD_ADDRESS;
- Address < (ULONG_PTR)MM_HIGHEST_VAD_ADDRESS;
- Address += (PAGE_SIZE * PTE_COUNT))
+ for (Address = (ULONG_PTR)MI_LOWEST_VAD_ADDRESS;
+ Address < (ULONG_PTR)MM_HIGHEST_VAD_ADDRESS;
+ Address += (PAGE_SIZE * PTE_COUNT))
{
- if(MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] ==
0)
+ if (MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] ==
0)
{
pointerPde = MiAddressToPde(Address);
- if(pointerPde->u.Hard.Valid)
+ if (pointerPde->u.Hard.Valid)
MiDeletePte(pointerPde, MiPdeToPte(pointerPde), Process, NULL);
ASSERT(pointerPde->u.Hard.Valid == 0);
}
@@ -464,7 +464,7 @@
NULL,
NULL,
&MiBalancerThreadId,
- (PKSTART_ROUTINE) MiBalancerThread,
+ MiBalancerThread,
NULL);
if (!NT_SUCCESS(Status))
{
Modified: trunk/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mminit.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] Thu Oct 24 17:53:45 2013
@@ -346,7 +346,7 @@
NULL,
NULL,
&MpwThreadId,
- (PKSTART_ROUTINE) MmMpwThreadMain,
+ MmMpwThreadMain,
NULL);
if (!NT_SUCCESS(Status))
{